Forums

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

How do I automate the epic creation, under the epic create task/issue and subtasks?

StnVikas Dhanorkar May 30, 2022


Hello I am trying to create a JIRA Automation rule but got stuck at the subtask creation level, can somebody help me with this, this is the requirement.

There are two projects Project-A & Project-B, there is a "Create-Task" custom dropdown field with the options "Yes" & "No" in project-A.

Output Should be...
When the user selects the option "Yes" in the Create-Task field(Project-A), the rule should run at the back-end and perform the following actions in Project-B.

1. First, go to Project-A, open the task, and choose "Yes" in the "Create-Task" drop-down field.
2. Then copy the summary of the Project-A task.
3. Then Create one epic, in Project-B and paste the same summary (summary of the Project-A task) into the summary field.
4. Then create one task in the same epic(Add epi link to the task).
5. Then Create sub-tasks in the same task(Which is created in step-4).

 

Rule-1.pngRule-2.pngRule-3.png

1 answer

0 votes
Bill Sheboy
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.
May 30, 2022

Hi @StnVikas Dhanorkar  -- Welcome to the Atlassian Community!

The rule images you posted do not seem to match the use case you describe.  Perhaps try to find a screen grab extension for your browser which will grab the entire rule image by scrolling the view and then post that in one image.

Also please note: this rule will need to be global/multi-project in scope, so confirm your licensing level will support running such rules.  You appear to be on a free license and so that has a very limited number of global rule executions per month.

Until then, I believe the use case you describe is possible, but I am unclear why you have an advanced branch on {{issueSummary}} in there.  What is the purpose of that?

Perhaps try:

  • trigger: value changes for "Create Task" field
  • condition: "Created Task" equals Yes
  • action: create Epic in your other project, accessing the fields from {{triggerIssue}} as needed (there is no need to put those into created variables)
  • action: create Task in your other project, and set the epic link using {{createdIssue.key}} to link to the just created epic
  • branch: most recently created issue (which now points to the Task)
    • action: create subtasks...

 

Kind regards,
Bill

StnVikas Dhanorkar May 31, 2022

Thanks Bill,
Thanks for sharing the steps, my problem got solved using {{createdIssue.key}}.

About advanced branch on {{issueSummary}} - It is copying the summary of Project-A task, and i am using the same summary in the newly created Epic Summary.

About license thing, yes, we have purchased license version and we are just doing R&D on trial versions.

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events