Install the mandatory Apps
- Apps needed
Do the Scriptrunner configuration
Create a new Script Field with the name e. g. Issue ID and the Script below:
import com.atlassian.jira.issue.Issue return issue.getId().toString();
Add the workflow post function
- Open the Jira Administration of Issues
- Move on to Workflows and choose the workflow, where you would like to add the function
- Go ahead and click on Edit of that workflow
- Choose an existing Transition or create one before
- Swap to Post Functions and click on Add post function
- Choose Create issue and subtasks by JWT and click on Add:
- You can customise the
- Scroll down to Set Fields:
- Add Container-Link - [Container Link]
- Set Source field in current issue:Issue ID - [Scripted Field] (choose the field we created before to get the issue id)
- Click on Save
- Add Reporter - [User]
- Set Source field in current issue: Current user - [User]
- Click on Save
- Add Container-Link - [Container Link]
- Scroll down and click on Add / Update
- Now you are ready to go and it should look like in the screenshot