GET via the email address using the API

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2023

Hi there,

I have a For AQL branch which is looking up records in a User object type where the Jira user is empty and then doing a GET per below

https://site.atlassian.net/rest/api/3/user/search?query={{object."Email Address"}}

I am never getting any records back, what am I doing wrong.

The send web request is correct as I connect, but I am just not returning any records back.

What have I gotten wrong?

1 answer

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 9, 2023

@Ste404 -

In automation AQL branching - here is the smartvalue for Assets objects reference -

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

Under the "Object reference" section of the page - take a look at the first example on Employee object where it has Manager reference.

Need to know more on your Assets object configuration - Is Email Address a reference of the object and the reference has the email address value?

I know that if I want to obtain the emailaddress of a user object (not related to Assets schema, the smartvalue syntax is something like:

{{reporter.emailAddress}} or {{assignee.emailAddress}}

Please advise and hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2023

Hey,

yeh Email Address is in Assets.  So for any records in Assets where 'Jira User' is empty I am trying to use the Email Address from the record in Assets in the api GET to find a match.  The webresponse back should include the accountId of the user from Atlassian when the emails match, then I am trying to edit the 'Jira User' attribute with the accountId, I just can't get a match using that GET string.

Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 9, 2023

@Ste404 -

As I am not savvy with REST APIs usage, so I would recommend you to contact Atlassian Support for technical advise on the APIs (https://support.atlassian.com).

I do know that Atlassian is still enhancing the REST APIs for Assets, so we may just have to wait and see.

Sorry.

Best, Joseph 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events