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

2 votes

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 Register to answer