Managing Watchers based on People Fields

Brandon Moberg
Contributor
February 7, 2025

We are using Jira Product Discovery for our roadmap tracking. Each of our ideas has people fields where we track who is running point for various teams (e.g., product, design, engineering).

We want to use automation to ensure the people added to those fields are added/removed as watchers when those fields are updated.

I have two rules set up to maintain this. The add watcher seems to be working fine but the remove watcher is not working as expected.

Add New POCs as Watchers

  • This rule seems to test fine.
  • Added 1 person, they were added as a watcher
  • Added 2 people at the same time, they were both added as watchers

Screenshot 2025-02-07 at 6.48.52 PM.png

Screenshot 2025-02-07 at 6.49.13 PM.png

Screenshot 2025-02-07 at 6.49.19 PM.pngScreenshot 2025-02-07 at 6.49.26 PM.pngScreenshot 2025-02-07 at 6.49.32 PM.png

 

Remove Deleted POCs as Watchers

  • Something seems to be amiss with this one.
  • If I remove 1 person from a field, it successfully removes them as a watcher
  • But if I remove 2 people from a field at the same time, it's not passing the JQL and removing them as a watcher. Any idea what's going on here? 

Screenshot 2025-02-07 at 7.06.59 PM.png


Screenshot 2025-02-07 at 6.51.23 PM.pngScreenshot 2025-02-07 at 6.51.38 PM.pngScreenshot 2025-02-07 at 6.51.44 PM.pngScreenshot 2025-02-07 at 6.51.50 PM.png

 

 

 

1 answer

1 accepted

2 votes
Answer accepted
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.
February 8, 2025

Hi @Brandon Moberg 

Advanced Branches take a list of values for iteration.  Created Variables are plain text values.

For both of your rules, the variable should be split into a list to feed the branch iterator.

  • For the add watchers rule, that would be this: {{addedAccountIDs.split(", ")}}
  • For the delete watchers rule, that would be this: {{removedAccountIDs.split(", ")}}

Kind regards,
Bill

Brandon Moberg
Contributor
February 9, 2025

Thank you, @Bill Sheboy I can't believe I didn't notice I removed the split at some point and didn't add it back. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events