We have developers that create issues all the time. Most often, these issues are for themselves, so we'd like to have issues automatically assigned to the reporter. Sometimes developers assign issues to other users.
If I use the "Assign to Reporter" post function, the issue is assigned to the reporter even if he or she changes the assignee to someone else.
Is there a way to only assign to the reporter if the assign field is "Unassigned"?
def reporter = issue.getReporter()
def assingee =issue.getAssignee()
You can use this script for on your workflow ,select a step in workflow select edit
-->post function than you can add their a script ,i use this with ScriptRunner
i am adding also links here to help you start with scripts on JIRA
let me know if you need more info
Out of the box, the answer appears to be no:
But....using a little script or a plugin can achieve the same trick:
This can be achieved via post functions on the Create Transition in the Project Workflow. You can make "Assign to Reporter" the first post function. This will make Assignee = Reporter if the user did not change the value in the create screen (left it set to "Automatic").
Kimberly's solution did not work for me:
I have it first yet whenever i try to create an issue, it always goes to the default assignee, not to the assignee that I select when creating the issue.
For anyone coming across this page in the 2020's - this can easily be accomplished using Automations. See: https://www.atlassian.com/software/jira/automation-template-library#/rule/1381434
You can add a condition that if the Assignee IS EMPTY the automation will run. If your "Default" assignee is "Unassigned", this will only change the assignee to the reporter if a different assignee is not chosen.
Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...
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