Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,356
Community Members
 
Community Events
184
Community Groups

Auto-assign issue to user selected in a custom fields on status change trigger

Hi,

 

So I manage several projects that have the following structure.

 

Issues have custom fields:

1. Assigned Dev

2. Assigned QA

3. Assigned Reviewer

4. Assigned Dev Ops

 

And statuses are:

 

1. In Development

2. In Testing (BETA)

3. In Review

4. Verified (Pending Deployment)

5. In Testing (LIVE)

6. Done

 

I want to add automation to change the assignee of the issue based on it's status.

 

I want to do it like this:

 

When status -> "In Development", change the assignee to Assigned Dev

When status -> "In Testing (BETA)" or status -> "In Testing (LIVE)", change the assignee to Assigned QA

When status -> "In Review", change the assignee to Assigned Reviewer

When status -> "Verified (Pending Deployment)" change the assignee to Assigned Dev ops

 

Is this doable without adding a custom script?

 

I am open to any and all solutions. If custom script is the only solution, I would appreciate it if someone can point me towards a good tutorial/documentation on JIRA custom scripts.

1 answer

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 27, 2023

Hi Muhammad - Welcome to the Atlassian Community!

Yes, you can achieve this with Automation Rules. Create a rule based on a trigger for Issue Transitioned. Select the Status it is transitioning to and then add a new action for Edit Issue. Select the Assignee field and then copy the value from the appropriate custom field. 

Hi John, Thanks for your answer.

Yes, I am aware of that. I tried it as well.

But the custom fields do not appear in the dropdown of values to copy from.

One option I saw was to add the action "Assign Issue" Instead, I did that and used the smart value of "{{customfield_Assigned Dev}}" but that automation rule just sets the assignee to "Unassigned".

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 28, 2023

Can you share a screen shot of the rule as you have it now? That syntax that you have is not correct for the field name. 

Are the custom fields all single user picker fields? They should show up to copy from. 

Like Muhammad Khan likes this

Yes, the custom fields are all single-user picker fields.

Here are the screenshots of the current rule:

assign-issue-on-transition.png

Here the custom fields are not appearing in dropdown:

another-field-value-or-comment.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 28, 2023

Use Edit Issue instead of Assign Issue. Choose Assignee and then see if you can copy the value from the Custom Field.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events