Jira automation - adding all current participants from an existing ticket to another newly added.
I have an automation button that asks me for particular info, and should create another jira ticket to a different group.
The issue I'm facing now, is hoe do I also add the current participants from ticket A to B (so they will be able to comment on this ticket as well.
(note - in our env. it is seems that userB cannot comment or see jira that userA created in our IT project, in order to enable userB to see and comment, we need to add him into the participants.
The participants seem to be in a custom field ( IDK why ) and are listed as an array.
(I don't see AccountID when GET the issue, it only appears on a custom field named
customfield_10003
Output example below the picture.
{ "fields": { "customfield_10003": [ { "self": "https://XYZ.atlassian.net/rest/api/3/user?accountId=6392f7fb9341d1f1360a8d0e", "accountId": "6392f7fb9341d1f1360a8d0e", "emailAddress": "michael.b@XYZ.com", "avatarUrls": { "48x48": "https://secure.gravatar.com/avatar/62ec7d225522f5996263de0699665ee4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMT-0.png", "24x24": "https://secure.gravatar.com/avatar/62ec7d225522f5996263de0699665ee4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMT-0.png", "16x16": "https://secure.gravatar.com/avatar/62ec7d225522f5996263de0699665ee4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMT-0.png", "32x32": "https://secure.gravatar.com/avatar/62ec7d225522f5996263de0699665ee4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMT-0.png" }, "displayName": "Michael B", "active": true, "timeZone": "America/Chicago", "accountType": "atlassian" }, { "self": "https://XYZ.atlassian.net/rest/api/3/user?accountId=611a5cc578fb330077033e23", "accountId": "611a5cc578fb330077033e23", "emailAddress": "noam.b@XYZ.com", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/611a5cc578fb330077033e23/8fc269aa-e7a9-48cd-b303-5f49489b9b69/48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/611a5cc578fb330077033e23/8fc269aa-e7a9-48cd-b303-5f49489b9b69/24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/611a5cc578fb330077033e23/8fc269aa-e7a9-48cd-b303-5f49489b9b69/16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/611a5cc578fb330077033e23/8fc269aa-e7a9-48cd-b303-5f49489b9b69/32" }, "displayName": "Noam B", "active": true, "timeZone": "America/Chicago", "accountType": "atlassian" }, { "self": "https://XYZ.atlassian.net/rest/api/3/user?accountId=624ff0825f63fd0069b7b173", "accountId": "624ff0825f63fd0069b7b173", "emailAddress": "kayla.b@XYZ.com", "avatarUrls": { "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/624ff0825f63fd0069b7b173/c63428ee-d312-4f2a-bc5b-2ff1ffa5bcf3/48", "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/624ff0825f63fd0069b7b173/c63428ee-d312-4f2a-bc5b-2ff1ffa5bcf3/24", "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/624ff0825f63fd0069b7b173/c63428ee-d312-4f2a-bc5b-2ff1ffa5bcf3/16", "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/624ff0825f63fd0069b7b173/c63428ee-d312-4f2a-bc5b-2ff1ffa5bcf3/32" }, "displayName": "Kayla B", "active": true, "timeZone": "America/Chicago", "accountType": "atlassian" } ] } }