Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set "shared with" field using a SIL scipt?

Bartłomiej F. Tajchman January 6, 2020

Hello,

I have a Service Desk (Cloud) and I have to set sharing access to raised ticket with group of customers. I am going to do it using a SIL script. When I try to access to customfield_10028 ("Request participants"), I suppose to find a list with customers who shared the ticket but I get: 

[{self=https://XXX.atlassian.net/rest/api/2/user?accountId=qm%A9934b98c-1205-4e9e-b895-7d4b6024783a%3A5ad02a55-4c93-4de7-b2ce-164e93ce209, key=qm:9934b98c-1205-4e9e-b895-7d4b6024783a:5ad02a55-4c934de7-b2ce-164e93c3e209, accountId=qm:9934b98c-1205-4e9-b895-7d4b6024783a:5ad02a55-4c93-4de7b2ce-164e93c3e209, avatarUrls={48x48=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=48&s=48, 24x24=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=24&s=24, 16x16=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=16&s=16, 32x32=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=32&s=32}, displayName=XXX, active=true, timeZone=Europe/Warsaw, accountType=customer}, {self=https://XXX.atlassian.net/rest/api/2/user?accountId=qm%3A9934b98-1205-4e9e-b895-7d4b6024783a%3A76b9cd1b-ffe741d1-96d6-af506d170b68, key=qm:9934b98c-1205-4e9e-b895-7d4b604783a:76b9cd1b-ffe7-41d1-96d6-af506d170b68, accountId=qm:9934b98c-1205-4e9e-b89-7d4b6024783a:76b9cd1b-ffe7-41d196d6-af506d170b68, avatarUrls={48x48=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=48&s=48, 24x24=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=24&s=24, 16x16=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=16&s=16, 32x32=https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/default-avatar.png?size=32&s=32}, displayName=XXX, active=true, timeZone=Europe/Warsaw, accountType=customer}]

How can I read a plain list of customers and set shared customers to my list?

Best regards.

Bart.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events