Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×This code is really heavy handed to update the fixversion field. I looked up and found Issue.setFixVersions([V]); approach. Is this deprecated?
Its a lot cleaner than the above answer but does not seem to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not saved your way.
Currently I would suggest to use IssueService.update(), a minimal version would be like this:
issueService = ComponentAccessor.issueService
def iip = issueService.newIssueInputParameters()
iip.setFixVersionIds(version.id)
def valRes = issueService.validateUpdate(user, issue.id, iip)
if (valRes.isValid()) {
issueService.update(user, valRes)
}
Of course this is without error handling etc.
Best regards,
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unlock your potential and learn how to use Jira Product Discovery to your advantage. You’ll have the expertise to revolutionize ideas and insights, roadmapping, engage and align teams and stakeholders, and deliver the best solutions—faster. Enroll today!
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.