Hello,
I have a situation very often, when I need to do some changes to the issue, but there is an inactive user in one of the multi-user fields. Change doesn't involve the field, so makes no sense for this overall validation of all fields to take place. There can be old issues with inactive users, and it is not possible to clear all inactive users in all old issues.
Usually I avoid this by using issue.setCustomfieldValue() instead of using IssueService.
But now I need to do automatic transition where all post-functions must be executed.
I can't do that, because if there will be inactive user in some multi-picker field (completely unrelated to the transition), transition will throw an error.
Is there a way to skip these validations of fields?
The expected result is that issue can be transitioned using Groovy and all post-functions are executed even if there are some inactive users in fields.
Nevermind. As in 99% cases, after a question was asked, I found how to do it:
issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(true,true)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.