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?

Thanks.

1 answer

1 accepted

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

128 views 1 3
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