Forums

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

AccountID look like change

Tomoya Watanabe August 11, 2023

Hello, I am uging Jira and managing it by REST API.

So I need to use accountID to create tickects for my members, but accountID looks like changed it structure and I cannot user account ID with new accountID structure.

 

Old:

5d1c475294xxf20c43bxx0ef

New:

712020%3A2944f452-xx51-4cfa-a212-36xx0eb23d13

I am usually get accountID by filtering with person in my active scripts or backlog then I can get accountID from URL on browser with assignee query.

 

Does any one help us?

2 answers

1 accepted

1 vote
Answer accepted
Tomoya Watanabe August 27, 2023

Resolved Problem:

 

Old:

5d1c475294xxf20c43bxx0ef

New:

712020%3A2944f452-xx51-4cfa-a212-36xx0eb23d13

 

This is my misunderstanding, correct New account ID was below:

712020:2944f452-xx51-4cfa-a212-36xx0eb23d13

I got accountID from URL bar in browser so [ : ] is encoded as %3A, that's why REST API was not working.

0 votes
Vikrant Yadav
Community Champion
August 12, 2023

Hi @Tomoya Watanabe Account ID unique for every user, it never changes. 

You can use this API to get all users Account ID : https://xyz.atlassian.net/rest/api/3/users

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-get

Thanks,

V.Y

Tomoya Watanabe August 13, 2023

Thanks.

 

I got information from the API with MaxResults query(our workspace has more than 50 users so I need to add maxResults query)

 

However, I cannot control Jira with account ID because of user id structure has changed.

 

New accountID structure is below from user API:

712020:d8ce133d-4af8-xxxx-xxxx-1f5b854d84b7

 

It is obviously changed from old style so I cannot identify how to put this id in request body.

 

ASCII code encoding( : -> %3A) is not working and aoso native : is not working.

 

What I want to know is not how to get accountID, how to put new accountID scheme in request body.

Vikrant Yadav
Community Champion
August 14, 2023

@Tomoya Watanabe  Are you using Project automation to create issues or you are using REST API call for creating issue in jira ? 
During issue creation, you need account id for reporter field ? 

Tomoya Watanabe August 14, 2023

@Vikrant Yadav 

I am using REST API, not Project Automation and I want to use account id for assignee field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events