Use automation to create a follower

Mark Berman October 16, 2023

We have an automation that creates a new linked story upon a particular status change.  We link the new story to the original.  How can we add the assignee of the original story to be a follower on the new one?  We are stumped.

-Mark

P.S. - We want to do this so that the person assigned to the original story gets notifications when the newly created linked story changes.

2 answers

1 vote
Bill Sheboy
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.
October 16, 2023

Hi @Mark Berman 

Have you tried using the Manage Watchers action?

Kind regards,
Bill

David Blank
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.
October 16, 2023

I've tried to find this action and somehow skipped over it. Always learning something new from you @Bill Sheboy ! 

Like Bill Sheboy likes this
Mark Berman October 17, 2023

We are new newbies to automation.  So the answer is no.  Thank you both for the quick responses.  We are going to try it out today.

-Mark

Like David Blank likes this
Mark Berman October 17, 2023

Okay... so here is this first simple automation that I am doing.

Automation-Jira.png

Basically, you check the business review box and we create a new story.  I am trying to get the Assignee from the original story to be a watcher on the new one.  

 

I see the Manage Watcher component.  This leads me to two questions:
1. How to make sure the Manage Watcher applies to the new story, not the one where the business review checkbox was checked?

2.  How do I identify the assignee in the original story and pass that user to the Manage Watchers component?

Thanks in advance for your help AND patience.

-Mark

Like David Blank likes this
David Blank
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.
October 17, 2023

@Mark Berman we were all new at one point. Great job on your first try!

 

For this I would use a Branch rule for the Most Recently Created Issue at the end of what you have there. Then I would use a Smart Value to populate the watcher with the Assignee from the trigger issue in the Manage Watchers Action. 

 

Mine would look something like this:

Screenshot 2023-10-17 at 7.29.54 AM.pngScreenshot 2023-10-17 at 7.34.58 AM.png

 

I'm curious to see if @Bill Sheboy would do it differently. Here's some more information on using Smart Values: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

 

Let us know how it works for you!

Like Bill Sheboy likes this
0 votes
David Blank
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.
October 16, 2023

Hi @Mark Berman ! Could you make the Assignee from the Original Issue the Reporter on the new issue? 

I might do something like this:

Screenshot 2023-10-16 at 7.26.56 AM.png

David Blank
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.
October 16, 2023

@Mark Berman for a use-case our team has, we only want to notify the owner of the linked issue (or original issue) at certain times, not every update. For this we are looking for a change to an issue with the specific link type and then using a branch to comment on the original issue and mention the owner.

 

Here's what it looks like in practice:

Screenshot 2023-10-16 at 7.32.28 AM.png 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events