SOAP API to create a private issue
Posted: 22 Feb 2017, 20:39
Hi,
I am using SOAP API to create an issue as /api/soap/mantisconnect.php?wsdl indicates.
Everything works fine with operation: mc_issue_add except when I tried to set the issue view status to private by setting view_state (id - optional) to 50 or (name - optional) to "private"
I am using ruby and savon gem, so the code is like
response = @client.call(:mc_issue_add, message: { username: admin, password: root, \
issue: { project: { name: 'test' }, category: 'general', summary: 'summary', view_state: { id: 50, name: 'private' }, \
description: 'description', handler: { name: 'admin' } } })
The code can generate a ticket , but the view status remains public. I also tried mc_issue_update which does not work too.
Can someone help me with this please? Thanks.
I am using SOAP API to create an issue as /api/soap/mantisconnect.php?wsdl indicates.
Everything works fine with operation: mc_issue_add except when I tried to set the issue view status to private by setting view_state (id - optional) to 50 or (name - optional) to "private"
I am using ruby and savon gem, so the code is like
response = @client.call(:mc_issue_add, message: { username: admin, password: root, \
issue: { project: { name: 'test' }, category: 'general', summary: 'summary', view_state: { id: 50, name: 'private' }, \
description: 'description', handler: { name: 'admin' } } })
The code can generate a ticket , but the view status remains public. I also tried mc_issue_update which does not work too.
Can someone help me with this please? Thanks.