...
Navigate to the intended workflow to make the necessary changes in the edit mode.
Select the required transition.
Select the Post functions tab and click
Add post function
.Add the “Create issue(s) (JMWE app)” post-function.
Fill in the required details.
Select the “Linked Issues” field under “Set specific fields of new issue(s)”. Select “Set field value to:” and add the below template :
Code Block language java {% set target = []%} {% set parentKey = issue | parentIssue("key") | field("key") %} {% if parentKey %} {% set val = {"type": {"name":"Blocks"}, "inwardIssue": {"key": parentKey} } %} {% set unused = target.push(val) %} {% endif %} {{target | dump(2)}}
Modify the link type name(
Blocks
in line #4). Use eitherinwardIssue
oroutwardIssue
in line #3 #4 as per your use case]Click Add and publish your workflow.
...