Hello,
I am trying to set an assignee right at the "Create" Transition of an issue.
I've tried traditional post-functions in the workflow, as well as ScriptRunner features. However, I am unable to reach my goal.
I am able to update the Summary field at the "Create" transition but non of my attempts work for the Assignee field.
I've actually managed to do this.
The issue was in the way I was trying to access the assignee field. Apparently, it goes deeper and looks similar to this:
assignee{
...
accountId: "someID"
...
}
So, I had to use the following script of the ScriptRunner to achieve my goal:
def issueKey = issue.key
def newAssignee = 'Insert User ID here' // it is important to insert user ID.
def result = put("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.body([
fields: [
assignee: [accountId: newAssignee
],
]
])
.asString()
Hello @Emil Khairov ,
I hope you are doing well!!
You can use automation rule in order to assign the issue automatically at the time of issue creation.
You may please have a look at https://www.atlassian.com/software/jira/automation-template-library/auto-assign
and
For more information how to configure and how it works you can have a look at YouTube video - https://youtu.be/_BZeN8VO2fA
Regards,
Mayur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Mayur Jadhav ,
I am trying not to go heavy on automation and broaden my knowledge in deeper aspects of workflow and generally, Jira management.
However, thank you for the suggestion, I appreciate it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another option is if you use Components, you can assign someone to each component and when that component is selected, they can be assigned to the issue when it's created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.