We need a groovy script that clears Assingee field to Unassigned.
This script will be triggered from script runner, only in certain conditions.
MutableIssue issue = issue
log.error("Assignee: " + issue.getAssigneeId())
the log is printing null, which is correct, but when consulting the issue it is istill assigned.
what i'm doing wrong?
Thx in advance!!
Where is this being run from?
If it's run from a PostFunction, the change may be missing because of the order of the post functions. Be sure to place it before "update change history and story the issue".
If this is in a listener or other script, then you need to perform several steps yourself if you want to replicate the normal behavior.
There are several examples in the community for how to use all those
Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events