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.




Assign resource to an issue

api

Version: v3.6.0 Build 2543

What method do you use to assign a resource to an existing issue?  I tried to set the AssignedTo field of the IssueEN object, then pass to IssueServices.UpdateIssue, but the AssignedTo property only has a getter and no setter.

dongertz
· 1
dongertz
Replies (4)
helpful
0
not helpful

You need to use the issue resources collection of the issue entity.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Can you provide a code snippet?


dongertz
· 1
dongertz
helpful
0
not helpful

Sure:

List<IssueResourceEN> resources = new List<IssueResourceEN>();

IssueResourceEN resource = new IssueResourceEN();

resource.IssueID= issue.IssueID;

resource.UserID = userID;

resources.Add(resource);

issue.IssueResources = resources.ToArray();


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks, works great.

BTW, if you want to set no resource to the issue (Nobody), assign issue.IssueResources to an empty IssueResourceEN collection.


dongertz
· 1
dongertz