How do we, using JMWE connector, updated a subset of subtasks

Deleted user October 31, 2019

Hi,

 I need to update field on a subset of sub tasks. But the change seems to to be applied to all subtasks regardless of type. Is there some way of restricting it to a subset?

I'm using the post function `Set field value of linked issues (JMWE app)`

Kieran

1 answer

0 votes
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.
October 31, 2019

Sure. You need to use the "Conditional Execution" option, with a condition like:

{{ linkedIssue.fields.issuetype.name in ["Bug", "Task"] }}
Deleted user October 31, 2019

Thanks David, I'll give it a try.

Deleted user October 31, 2019

Sorry Dave, does 

linkedIssue.fields.issuetype.name

 work for subtasks or should it be 

subtask.fields.issuetype.name
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.
October 31, 2019

linkedIssue represents the "current" linked issue when iterating over the linked issues configured in the post-function - which in your case are sub-tasks. So linkedIssue represents, in your case, each sub-task in turn.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events