Create Epic and tasks using JIRA Script runner

Hi,

I would like user to create an Epic with a number of linked Tasks

(Epic) Product X

(task) Desgin Product X

(task) Build Product X 

(task) Test Procuts X

Can this be done using script runner?

I have looked but can't fine a recent referance to this.

Could this be done using workflow post actions, create Epic then task are created automaicly afterward?

I not very techincal so, any help would be great.

I don't have any money for another add-on.

 

Many Thanks

Kevin

1 answer

This widget could not be displayed.

Hello Kevin.

Yes this is entirely possible using a postfunction.

In the simplest case, let's say that you want to copy the original issue to the Epic and then to the task.

You would need to:

-----------------------

1. Go to your workflow.

2. Edit your workflow.

3. Go to the transition that you want this to trigger on:

4. Add Scriptrunner postfunction.

5. Select Copy Issue and Links postfunction.

6. Select the fields that you want to propagate to the next issue, for example

     a) Description

     b) Version number

7. Select the issue type as an Epic.

8. Save the postfunction and move it to the last place in the list of postfunctions in your transition.

-----------------------

Repeat this process for your other 

(task) Desgin Product X

(task) Build Product X 

(task) Test Procuts X

BUT bear in mind to set the issue type as "Subtask" or "Task"

 

In the end you would have a total of 4 postfunctions. The first one would be for your epic, and the rest for your design, build and test steps.

Please do say if I can be of anymore help.

Cheers!

Dyelamos

Hi Daniel,

 

This is a great soltuon.

Thanks for your help on this 

Kevin

No problem. Could you please accept my answer so that other users know that this has been correctly answered?

Thanks!

DYelamos

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 12 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

36 views 1 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you