Hi Team,
In my project workflow for a Transition I added a Post-function to create a sub-task automatically and I selected the 3 fields to copy the values from Parent issue
When i Execute the workflow Transition its creating a subtask automatically and copying the values from Parent issue.
So, here I need When its Creating subtask automatically i need to set a Default value for "Description" field.
Can you please suggest me how to achieve this
Thanks,
Kumar
Hello @Kumar
In the "Additional Actions" section of the create sub-task post-function you can set the default description
issue.description = 'default description'
@Tarun Sapra Thanks for your quick response
Here is the default value for description I need to set like
Description
________________________________________________
DateTime:
Cause:
Action:
This is the value i need to set can you please help me here in the 'defalut description' i replased the above vale its says error
Thansk,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Kumar
Based on your requirement I suggest you to use the behaviour module of SR plugin which get's activated at the time of create issue screen popup
https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tarun Sapra Thanks for your reply
I tried the Behaviour script but its not working while its creating sub-task automatic
after creating when i click on Edit and Update the subtask then its working.
Thanks,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tarun Sapra I resolved it I did a small change in the script
issue.description = """ Description
________________________________________________
DateTime
Cause
Action""".replaceAll(/ /, '')
This is the script i have modified and its working thanks for your help
Thanks,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, does anybody now how to add bullet points to the value? description is a rich text field, so there must be a way to include formatting elements.
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.