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

TIm Khasan September 17, 2013

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

1 vote
Answer accepted
Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2013

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

TIm Khasan September 17, 2013

thanks for your answer, I'll try it

TIm Khasan September 18, 2013

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.

Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2013

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