Hello,
I'm using ScriptRunner for Jira Cloud and I basically have the following workflow that I'm trying to automate.
- A fix version (field name "Fix versions") is updated on a bug/story
- I have a script listener triggering on issue update which checks if the "Fix versions" field was updated, if it was it drops into a "do something" block.
- I would like to update any linked "support ticket" type issue to have the same Fix version which was just entered in the bug/story.
Basically I want any updates to the fix version to propagate out to any linked support tickets, I've managed a solution which unfortunately will only work on Jira server, and I'm struggling a little getting this to work on cloud having just migrated.
Here's the shell:
def fixVersionChanged = changelog?.items.find { it['field'] == 'Fix versions' }
if (!fixVersionChanged) {
//logger.info("Fix Version was not modified")
return;
}
//logger.info("Fix Version was modified")Assistance would be much appreciated.
Thank you