Basically I have an issue type that adds and removes request participants based on changes to an object field. In the object field the user's name and email is stored but not their customer accountID.
What I want to do is when the object field changes, remove the specific old RP and add a new one. I know how to do it with the account ID, but I am having trouble doing it when using just the email. At the moment I tried this in the "advanced" edit issue but it doesn't seem to work:
{"update": {
"Request participants": [
{
"add": {"email":"{{issue."assigned contractor".email}}"}
},
{
"remove": {"email":"{{lookupObjects.email}}"}
}
]
}
}
The lookupObjects looks up an asset in my db that contains name and email from the {{fieldchange.fromstring}}
Using the auditlog it seems like {{lookupObjects,email}} is returning empty...
Hi @Remy -- Welcome to the Atlassian Community!
First thing, I am not using JSM and my suggestions are based on what I know about automation rules...
To add / remove users with JSON for Jira Cloud, the id value is needed, as described here:
Please check if the accountId attribute is available in the lookup object. If it is, try using that.
Kind regards,
Bill
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.