When my warranty or licence expires from my assets in jira?


can somebody tell me how to use ScriptRunner for changing the status automatically in Jira? I have created a custom field called "licence end" with type date.

For example: If my software licence expires in a 1 month i want to change the status of my issue into "Licence expires". From there i want to run a postfunction and create a new Ticket.


How can i realise that?


Thank you

1 answer

This widget could not be displayed.

Okay Johannes, hold onto your horses cause this isn't very simple.

Step 1

You can create a field with your expiration day. That field could be visible or hidden.

Step 2

You need to also create a new state in your workflow with a name that is "LICENSE EXPIRED" or something like that.

Step 3

Afterwards, you create a scripted job, that scripted job should scan your project for the issues that are of your type, check the date, and then transition your issue into that new state.

Step 4

Within the transition to your "LICENSE EXPIRED" state, you should have your sendEmail postfunction, and the createAndClone issue postfunction so that you can get your email and the new issue.

Once all that's done, you should have what you want.
This might be a bit hard to setup mind you.

Hope this helped!

Do say if I can help you further.



Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

146 views 2 0
Join discussion

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