You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.