Forums

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

Listener to change sub-task version if parent task version is changed

Teemu Niemi February 14, 2019

I have been using earlier posted script in our environment. Now users have noticed that, when sub-task version changes every time when task is edited. For example parent task is in version 1.3 and sub-task is version 1.4. If parent task is updated (change of assignee), then sub-task version is incorrectly changed to 1.3. 

How can I do fix/versions changes automatically based on parent fix/versions field? Sub-task should change only when parent fix/versions -field is updated.

https://community.atlassian.com/t5/Jira-questions/Custom-update-listener-to-set-subtask-s-fix-version/qaq-p/591808

1 answer

0 votes
Tansu Akdeniz
Community Champion
February 14, 2019

Hi @Teemu Niemi,

The script, provided in your link, works whenever an issue is updated. Because it listens ISSUE_UPDATED event. So, each field change in parent issue will automatically fire this event although fix/version doesn't change. 

You should look at the event changelog whether fix/version has changed or not.

Example: https://community.atlassian.com/t5/Marketplace-Apps-questions/Custom-listener-to-detect-User-Picker-field-change-and-copy/qaq-p/440758

Suggest an answer

Log in or Sign up to answer