Jira Account Id format and extraction of user details

sumit_k_pal_pwc_com October 26, 2023

We are trying to reproduce a scenario where we are trying to create a user ID with the format below:

/users/712020:62b630e5-843a-49af-a800-6cb63f49efbc

The users we have created so far have the format 

/users/63d901e10015d0b19c1fb328

which is working as part of a custom Jira workflow solution with ScriptRunner. However, the script fails when the user ID format changes as above.

Please help so that we can create user IDs with the above format, reproduce the scenario, and fix our solution.

 

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 30, 2023

Hi Sumit,

Thank you for your question.

If your string is always the same number of characters and you need to add separator characters at certain points, then you could use the Groovy Substring method to take the user Id generated string and generate sub-strings of each group of characters.

You could finally join all the strings back together, adding in the separator characters required to ensure you get the string into the format which you require.

I hope this helps,

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events