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.




How to set AffectedVerion in IssueEN?

web-app

I am trying to create a issue via IssuesService.CreateIssue(IssueEN). How can I set the AffectedVersions?


hlu
· 1
hlu
Replies (5)
helpful
0
not helpful

Like so:

IssueEN issue = new IssueEN();
            AffectedVersionEN[] affect = new AffectedVersionEN[1];
            affect[0] = new AffectedVersionEN();
            affect[0].VersionID = 1; // Should be a valid  version id
            issue.AffectedVersion = affect;


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thanks.

Is there a service where I can get the versionID? I don't want to hard code a number especially when the versionID is created dynamically with each new project.


hlu
· 1
hlu
helpful
0
not helpful

Yes, the project service.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Is ProjectService.GetVersions what you are referring to?  Is there a service that gets the versionID directly?



hlu
· 1
hlu
helpful
0
not helpful

Yes, GetVersions is the one. There is no service to get the ID only.


Mark Wing
· 9108
Mark Wing