How can I automatically create a story on epic transition?

andreas
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.
September 8, 2016

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
andreas
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.
September 8, 2016

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.
Sekhar Chandra May 8, 2020

@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
AUG Leaders

Atlassian Community Events