View Issue Details

IDProjectCategoryView StatusLast Update
0024756mantisbtapi soappublic2018-09-12 09:51
ReporterRuzhelovich VladimirAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platform2.8.0OSUbuntuOS Version16.04.3 LTS
Product Version2.17.0 
Target VersionFixed in Version 
Summary0024756: some fields that are not defined in the question are passed differently in the functions mc_issue_get and mc_issue_update
Description

some fields that are not defined in the question are passed differently in the functions mc_issue_get and mc_issue_update

for example:
1.
IssueData['tags']=[] for mc_issue_get,
IssueData['tags']=None for mc_issue_update,
2.
IssueData['monitors']=[] for mc_issue_get,
IssueData['monitors']=None for mc_issue_update,
3.
IssueData['attachments']=[] for mc_issue_get,
IssueData['attachments']=None for mc_issue_update
4.
IssueData['notes']['text']='' for mc_issue_get,
IssueData['notes']['text']=None for mc_issue_update,

because of this there is a need to adjust the resulting before updating.

Additional Information

workaround solution (python):
client = Client(self.wsdl)
IssueData=client.service.mc_issue_get(self.user, self.passw,issue)
if IssueData['tags']==[]:
IssueData['tags']=None
if IssueData['monitors']==[]:
IssueData['monitors']=None
if IssueData['attachments']==[]:
IssueData['attachments']=None
if IssueData['notes']==[]:
IssueData['notes']=None
IssueData['notes']=None

        res=client.service.mc_issue_update(self.user, self.passw,int(issue),_IssueData_)
TagsNo tags attached.

Activities

Ruzhelovich Vladimir

Ruzhelovich Vladimir

2018-09-12 07:55

reporter   ~0060642

Last edited: 2018-09-12 07:56

View 2 revisions

return mc_issue_get:

{
'id': 55081,
....
'monitors': [],
'sticky': False,
'tags': []
}

Issue History

Date Modified Username Field Change
2018-09-12 07:53 Ruzhelovich Vladimir New Issue
2018-09-12 07:55 Ruzhelovich Vladimir Note Added: 0060642
2018-09-12 07:56 Ruzhelovich Vladimir Note Edited: 0060642 View Revisions