Update parent issue on transition (JMWE)

Sadath Ali Syed July 21, 2021

Hi All,

We have a requirement wherein we need to update parent issue on transition. Once the subtask is transitioned, we need to REMOVE the value in multi-select field of the same field of the subtask's parent issue.

We have JMWE automation. In JMWE, we have a post function called 'Add Field Value to Parent Issue Post-function' thru which the value of a multi-select field can be ADDED to the same field of the subtask's parent issue. However, we are looking to REMOVE the value in multi-select field of the same field of the subtask's parent issue.

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 21, 2021

Hi @Sadath Ali Syed 

you can achieve this using a Set Field Value of Related Issues post-function, with these settings:

- Field: your custom multi-select field

Which issue(s): parent issue of the current sub-task

- Value type: Groovy Expression

- Value:

(relatedIssue.get("Multi-select field") ?: []) - (issue.get("Multi-select field") ?: [])

(assuming you want to remove the values of the custom field on the sub-task from its parent issue) 

Sadath Ali Syed July 22, 2021

Thanks @David Fischer . You are a life saver :) 

Suggest an answer

Log in or Sign up to answer