Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation rule - smart value - epic and user story

ANISH TANEJA February 23, 2023

How do I create an automation rule where when if I update the epic summary field - the user stories under the epic have part of the epic summary as smart value and part is text which is different for each user story.

Couple of user stories below for example:

1 - Requirements Gathering - {{issue.Summary}}

2 - Epic Planning - {{issue.epic.Summary}} (this user story is branched thats why the smart is different)

Please let me know if there is a way for when i update the epic summary - all the user stories get updated with the latest epic summary (but the first part of the text remains the same)

 

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
February 23, 2023

Hi @ANISH TANEJA - So if I understand correctly, you want a replaceable bit of text in the child issue summary that can be changed every time the Epic Name is changed?

  • Old Epic Name: Test 1
    • Old User Story Summary:  Test 1 - abc
    • Old User Story Summary:  Test 1 - def
    • ...
  • New Epic Name: Test 2
    • Old User Story Summary:  Test 2 - abc
    • Old User Story Summary:  Test 2 - def

Here's how you can do it:

  • TRIGGER: Field Value Changed (Epic Name)
  • BRANCH (Stories or other issues in Epic)
    • ACTION: Edit Issue (Summary)
      • {{triggerIssue.Epic Name}} - {{summary.substringAfter(" - ")}}

If you don't already have it, you probably want a second rule that triggers on Epic Link field changing so that stories automatically inherit the Epic Name as they're added to the Epic.

ANISH TANEJA February 23, 2023

Hi @Mark Segall yes, you got it right.

Just one change here, if the epic name in the child issue summary is after the text, will the below smart value text work?

  • Old Epic Name: Test 1
    • Old User Story Summary:  abc - Test 1
    • Old User Story Summary:  def - Test 1
    • ...
  • New Epic Name: Test 2
    • Old User Story Summary:  abc - Test 2
    • Old User Story Summary:  def - Test 2

 

{{summary.substringBefore(" - ")}} - {{triggerIssue.Summary}}

Like Mark Segall likes this
Mark Segall
Community Champion
February 24, 2023

Yes that will work too!

ANISH TANEJA February 24, 2023

Yes @Mark Segall this worked. Thank you :)

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer