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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

809 views 2 19
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