Hello!
I'm looking to add the Atlassian ID to their respective JSM Asset object attribute associated with the User objects. We have created an automation rule that mirrors the one outlined here: https://confluence.atlassian.com/jirakb/update-user-type-attribute-of-an-insight-objects-using-automation-after-import-1141505554.html
We are finding that we are unable to enter the 'Name' attribute as a valid entry for the 'Atlassian Account ID', even though we have confirmed that we are able to COPY and PASTE the 'Name' attribute, and have it return properly with only one entry into the 'Atlassian Account ID' dropdown.
If anyone has any suggestions on next steps to get the Atlassian ID into JSM Assets would be greatly appreciated.
Thank you!
Stephen
Hello @Stephen Call
Welcome to the Atlassian community.
Can you provide a screen image showing the details of the step where you are trying to Edit the Asset fields and use the Name attribute?
The article you referenced does not include instructions about using the Name attribute, so I am suspecting you have not created your rule in the same manner as instructed in the article.
Hello Trudy,
Thanks for responding so quickly!
Please see below for your requested screenshot. Note that the slight adjustments I made to the naming convention was due to how our specific instance is configured.
If you would like to see anything else, or have a suggestion on where to investigate first, it would be greatly appreciated.
Thanks again!
Thank you for the additional information.
Can you provide the details of each step in the rule?
Please also use the Log action to print to the rule audit log the smart values that you are trying to use which should be (according to the referenced article):
{{object.mail}} (or the name you have given to the "mail" attribute in the People object)
{{webResponse.body.accountId}}
Can you show us a screen image of the People object attributes showing the Atlassian Account ID attribute type, specifically?
Please see below for an outline of the automation rule, let me know if you need validation screenshots of any specific configurations mentioned.
When updating an object within the 'People' object schema, the AQL: 'Email is not empty and "Atlassian Account ID" is empty' is ran.
A new variable named EMAIL is created with the smart value: {{object.Email}}
A web request is sent to https://<Jira Sandbox>-sandbox.atlassian.net/rest/api/3/user/search?query={{EMAIL.urlEncode}} with a GET request with the following headers:
Content-Type - application/json
Accept - application/json
Authorization - Basic <API Key>
Another new variable is created named AAIDUser with the smart value: {{webResponse.body.accountId}}
We finally edit the object attribute of 'Atlassian Account ID' with the smart value: {{AAIDUser}}
Below is the requested screenshot, along with a screenshot of the resulting audit log entry:
It looks like you're new here. Sign in or register to get started.