Forums

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

Issue with New Jira User Account ID Format in ScriptRunner Behavior

Susheela.Kushwaha
Contributor
April 18, 2025

Hi ,

I am encountering an issue with the new Jira user account ID format in the ScriptRunner behavior. The code works perfectly fine with the older account IDs that do not contain ':' or '-' signs. However, it fails to function with the new user account Id format. Could you please advise on how this can be fixed?

 

if(JiraUserAccountId=="9878 : dd758383d-3r45-005d-0094-3abdhfldklfda")  
    {  
      logger.error("user found!")
      //set field as optional
      getFieldById("parent").setRequired(false);
         
    }

Thank you,

Susheela Kushwaha

0 answers

Suggest an answer

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

Atlassian Community Events