It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change assignee to custom field value based on components

Is there a way to update the assignee from a custom field value based on components during a workflow transition?  For example: 

Component = xyz

Owner (Custom Field) = Jane Smith 

Assignee = John Doe 

I'd like to update the Assignee field to Jane Smith (which the value of the Owner) when the issue transition from IN PROGRESS to Development. 

There is a post function called Assign from custom field but that's a straight assignment, no need to specify condition. 

2 answers

0 votes


You can not accomplish it without an app. You would need an app like Power Scripts, Scriptrunner, Automation for Jira.

If you want to use the Power Scripts app then you can write a post function like this;

if ("xyz" in components and reporter = "jane.smith") {

   assignee = "john.doe";


We use scriptrunner, how do I accomplish this in scriptrunner post function? 

here is the scriptrunner code:

if ('xyz' in issue.components*.name and issue.reporterId = 'userId'){

     issue.assigneeId = 'newUserId';


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

342 views 1 3
Join discussion

Community Events

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

Events near you