The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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 Champions.
September 18, 2013

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