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

Auto transition based on custom field value

We have a end date custom field we mention a end date during creating a issue, when it reaches automatically a transition should happen from Status A to Status B.


3 answers

You could create a scripted field in Scriptrunner for Jira which at execution (every time the issue is updated or viewed) compares the current time (you get this one with a groovy/java method) with the value of the end date field.
Then you can an specify with the internal jira api the transition of the issue your scripted field is placed on.
If you or a colleague have some scripting experience this shouldn't be to hard to realize.
With kind regards

Hi @Rajkumar Pasupunuri,

If you can explore custom development as an option, then you can write a scheduler which wakes up and scans the JIRA issues (You can limit the scheduler processing to a specific project and specific status, based on your requirement) and execute the transitions/ change the status.


Ravi Varma

0 votes


You would need an add-on for it.

For example, you could use the Power Scripts add-on:

With this add-on you could create a job, which is run by schedule. In this job you would select all issues with expired end date and auto transition such issues.

Your code would be like this:

string jql;

jql = "'End Date' < now()";

string[] keys = selectIssues(jql);

for (k in keys) {

  autoTransition("Transition Name", k);


You can find how to create a schdule job here:

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,343 views 14 25
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you