I need to read all the values of "Fix Version/s" field and need to compare those values matches with the text "Released" or not.
I tried with linkedIssue.fixVersions*.name.contains("Released") but it's not working out.
Any help would be great and helpful. Thanks in advance.
Regards,
Ramaswamy
Hi Ramaswamy:
If, and only if issue is an instance of MutableIssue, or Issue:
issue.getFixVersions().find {it.name == ["fixVersion.1.0"]}
In your case, "released" would do the trick.
The main problem is that I believe that your linkedIssue might be an IssueLink, not an actual issue.
If you want, you can debug your code in parts, like this:
log.debug(issue.getFixedVersions().collect {it.name})
This line would print all of the getFixedVersions within your issue, just to check that there's actual fixed versions in your issue.
Do say if I can help you further.
Cheers!
DYelamos
Hi DYelamos,
Thank you for the response, but as you said I could able to get the Issue's Fix Version/s value, but not the IssueLink. And also for the log, it's same.
Any help would be appreciated.
Thanks,
Ramaswamy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.