Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Account Id format and extraction of user details

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.
Oct 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events