Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify issue summary at automatic creation of SubTasks when a new ticket (US) is created

Emmanuel CARRAY June 8, 2021

Dear Community,

I want to modify the summary field set by default when using the automatic creation of subtasks when a new ticket (US) is created. To be more precise, I want to change "Support" into "SB XX-XXX-XX - Support" where SB XX-XXX-XX is the issue parent summary.

How could I do it automatically at issue creation please ?

Thank you

2 answers

0 votes
Hyrum Steffensen _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2021

Hello Emmanuel,

As Trudy points out, there are various scripting solutions available, so let us know if you have a preference and we can provide and example. Here is an example script if you are using Power Scripts:

string newIssueKey = createIssue(
    "DEMO",
    "",
    "Sub-task",
    "Summary goes here " + parent    // here is how you add the parent summary
);

For more on issue creation, see this documentation.

...on creating custom workflows such as Post Functions.

Because of Confluence Cloud security features, you may need to open the documentation in incognito mode or by logging out of Confluence.

Regards,

Hyrum 

Full disclosure, I am a product engineer for Power Scripts, made by Anova Apps, an Appfire company.

Emmanuel CARRAY June 8, 2021

Hello @Hyrum Steffensen _Appfire_ 

Thank you for the answer and the information that should help me. I go through it !

Regards

Hyrum Steffensen _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2021

Hello Emmanuel,

You can use Automation in conjunction with Power Scripts. When selecting an Action, select "Power Scripts Action".

Screen Shot 2021-06-09 at 9.55.02 AM.png

Regards,

Hyrum

Emmanuel CARRAY June 16, 2021

Sorry Hyrum, but I haven't got Miscellaneous option. It appears easier to use issue action with . Is that correct ? If so, could you share an example please.

Regards,

Emmanuel

Trudy Claspill
Community Champion
June 16, 2021
0 votes
Trudy Claspill
Community Champion
June 8, 2021

Hello @Emmanuel CARRAY 

Welcome to the community.

What have you done to automate the creation of subtasks?

Emmanuel CARRAY June 8, 2021

Hello @Hyrum Steffensen _Appfire_ 

Thanks for answer that quickly :-)

I've just used automation in JIRA when creating an issue with automatic creation of its subtasks. I was wondering if More options/Additional fields box with JSON code could help me.

What do you think ?

Trudy Claspill
Community Champion
June 16, 2021

You should be able to update the summary of the sub-task using Smart Values.

Are you creating the parent story and the sub-tasks in the same rule or separate rules? Can you show us the rule(s) you have at this point for this task.

This post reference the same topic:

https://community.atlassian.com/t5/Jira-Software-questions/Automation-for-Jira-Smart-Values-in-Sub-Task-Summary/qaq-p/981415

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events