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,298,460
Community Members
 
Community Events
165
Community Groups

When a user transitioned an issue to 'In Progress', how to assign the issue to this user?

Dear Community!


I want to write a script with Jira Cloud Scriptrunner for the following problem:

When a user transitioned an issue to 'In Progress', this user should be assigned to the issue.

I know, that you can get the current user with

def currentUser = get('/rest/api/2/myself').asObject(Map)

and the field of the assigned user with

def assignee = issue.fields.assignee

 The event, that triggers the script, should be 'Issue Updated', right?

My problem is, how do I know if the issue got transitioned to 'In Progress' from a different workflow state (e.g. from 'Review')?

Any help is appreciated.

Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Mayur Jadhav Community Leader May 31, 2022

Hi @Jakob Nikolaschin ,

Welcome to the Atlassian Community!!!

Instead of using script runner the out of the box you can achieve it through either post function or Automation rule.

Atlassian has created details documentation on how to assign issue automatically when issue is transitioned with both the methods.

 

Thanks,
Mayur

Hey @Mayur Jadhav ,

Thank you for your answer. But we already have that Automation rule. Our target is to switch to a script solution on this automation. Is there a possibilioty to do so?

Suggest an answer

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

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