The issue called "Onboarding" of a project will automatically create a Sub-task (using post functions at transition:create. We need to put some instructions in the Description field for users to complete the Sub-task. The content of the description is setup in the Behavior in ScriptRunner.
Syntax:
===================================
Hi @soni
If you wish to use scriptrunner post-function on Create Transition on Parent Workflow
then you can use "Create a sub-task" post-function.
Select Target Issue Type as <your-sub-task-type>
Fields to copy: Custom > Description (System field)
Additional Issue actions:
issue.description = '<your-description-verbiage-for-sub-task-only>'
So, whenever a Parent issue is created then the Sub-task will also create with your set description and it will only appear on Sub-task and not on Parent/Main issue.
I hope this helps.
Thanks,
Digvijay
Hi Digvijay,
After changing this configuration, the pre-set in ScriptRunner Behavior for "High" priority for Sub-Task is no longer working, and only the main ticket "Onboarding" works.
The Script Runner behavior set the mapping to the project for both main and Sub-task issue types. The code is:
// set a priority value for both Onboarding and Sub-task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.