Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation to create stories on epic creation when the give a component or a field value matches

we have a requirement to create stories in different projects when we create an epic. but it should create only when the predefined custom field or a component filled 


For example:

1. when I'm creating Epic in a project "A" with a component "X", it should create stories Story 1, Story 2, and Story 3 in the project" B".

2. if i'm creating epic with a component "Y", it should create stories in the project "C"


if I create an epic without that component "X", "Y" it should not create any stories just the epic.


We have JSU, Script runner plugins, version is 8.8.


any help would be appreciated. 

2 answers

Hi @Sai Praveen Aminigadda 

What have you tried thus far for your rule?  Would you please post an image of it?

If you are just getting started, you could use an issue created trigger, conditions for the issue type of epic and and if/else on component, and then create issue actions to select the project and fields.

Please see here for more information:




Examples library:

Best regards,


@Bill Sheboy thanks for responding. I have tried with a post function based on the field "Team" as shown in the screenshot. but it is creating stories by selecting any team. but, i want that to create stories only when the team selected "A"Capture.PNG

Hi @Sai Praveen Aminigadda 

Sorry, I missed that you were trying to do this with ScriptRunner.  @Ravi Sagar _Adaptavist_ has given you advice for using that add-on tool.

I was suggesting the use of the Automation for Jira features, which were the links to documentation I provided.  There is a free Lite version if you want to try that add-on.

Best regards,


@Bill Sheboy due to our company policies, I cannot install another add-on even it free. i have to achieve this with existing add-ons only. 

0 votes

Hi @Sai Praveen Aminigadda 

You can create an issue using a post function or a listener. To get started you can take a look at this script here. Hopefully it will give you some ideas.


@Ravi Sagar _Adaptavist_ thanks for responding. i want this to happen only when the predefined a custom field value given while creating a epic.

i don't see any condition in the script. how can I modify it?

You will have to write a custom script for that.

I'm not good at scripting. do know where can I get help with this?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

159 views 3 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you