Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Gemini API - Change AssignedTo Value

web-app

I would like to use the API to change the Assigned User of an Issue. For example, I wish to take a issue that is assigned to a developer and re-assign the issue back to the reporter of that issue.

I can't see which objects and/or methods I should be using to do this.

Thanks

RegusDeveloper
· 1
RegusDeveloper
Replies (2)
helpful
0
not helpful

You have to get the issue and manipulate the IssueResources collection (add / remove or update it). Then call the update issue method.

If you are using our service manager (assuming you have issue id 16 that is assigned to a resource):

IssueEN issue = serviceManager.IssuesService.GetIssue(16);
issue.IssueResources[0].UserID = 2;
serviceManager.IssuesService.UpdateIssue(issue);


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thank you,

I thought it might be to do with IssueResources, but the API documentation says the UpdateIssue method doesn't update nested entities such as resources, comments etc. So that sent me off track.

Thanks again, that answers my question.


RegusDeveloper
· 1
RegusDeveloper