Can I make changes in custom field of existing issue using a script?

For example, "when field "x" takes value "y", set field "i" to value "c"".

In others words, I want to make a calculable text custom field (I use plugin "Jira misc custom fields") which takes value depending on some time condition (like "when "time"="current time"+30min?, custom field takes value (text) "red").

I've already made another custom field, which takes current time and adds to it 30 min and it works fine.

Аs I understand, this script ran only one time: when I creating an issue. How it will be initiated at described conditions (when issue already exists)?

Is it even possible: to change existing issues using a scripts?


1 answer

1 accepted

you can write a listener which listens ISSUE_UPDATED event and check for customfield values.

thanks for your answer, I'll try it

In my situation some issues are not updated since they were created. I'm looking for some kind of scheduler, which can "refresh" all issues so my function could be executed. Like cron in unix.

then in that case, you can make your listener listen for ISSUE_CREATED event also.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,754 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot