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

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

How can I automatically create a story on epic transition?

So here is what we're trying to do: when an Epic issue type is transitioned to a certain status, we need it to create a Story issue type, and here's the kicker: we need it to have the same assignee as the one from the Epic issue that triggered this issue creation

1 answer

1 accepted

1 vote
Answer accepted

You can do this with Automation for JIRA.  It requires a bit of advanced config in the "create issue" action but it's pretty straightforward.

Here's an example rule configuration:

epic-story-creation.png

It's made up out of 4 components:

  • The issue transitioned trigger so we start rule execution when an epic is transitioned
  • One condition to check the issue is in fact an "Epic"
  • Another condition to check which status we were transitioned to - "In Progress" in this case
  • Finally we create a story with some advanced config.

 

The advanced config is:

{
    "fields": {
        "assignee": {
             "name": "{{issue.fields.assignee.key}}"
        },
        "Epic Link":"{{issue.key}}"
    }
}

 

This does 2 things:

  • It sets the assignee of the newly created issue to the same assignee of the epic that was transitioned ({{issue.fields.assignee.key}} will be the epic's assignee
  • It sets the epic custom field to the {{issue.key}} of the epic.  This means the new story will be linked to the Epic already once it's been created.  You may not need this.

@andreas  Hi-

How to do this in Jira cloud?

This add-on is not supported for Jira Cloud, so which one can support for this task?

Thanks.

Chandra

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...

290 views 7 19
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