Missed Team ’24? Catch up on announcements here.

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

Using Assets to define watchers of issue through lookupObjects

Aubin Coste January 27, 2023

Hello!

I am working on automation with assets that for a certain request type created, a pool of watchers will be automatically watching the issue.

I have so made an asset with attributes "Request type name" and "Watchers", on my Jira automation, I take the lookup object with {{issue.Request Type.requestType.name}} to use it in a query and get the desired object.

It works and I get the Watchers of the object (Watchers are Person attribute with cardinality 0 to infinity) and using the action "Assign watchers" I'm able to put one user watcher of the issue with success.

However, if there is more than one Watchers it crashed with only a log message:

Manage watchers:
Error watching issues

So my question is: is there a specific way to provide a list of users to be watchers of an issue? or maybe kind of loops to provide the watchers one by one?

FYI: here is how I get my Watchers to attribute through the lookupObjects -> lookupObjects.Watchers.Jira User

Thanks in advance!

1 answer

0 votes
Aubin Coste January 27, 2023

Hello,

The solution has been found, just need to iterate on the array has a result.

Suggest an answer

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

Atlassian Community Events