issues with ProjectRoles and fast-track transition

Kiril Kolev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2025

Hi guys, 
I'm trying to use this script, but I get an syntax error, even though I followed the recommended instructions (https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/jira-expression-examples -> user.getProjectRoles(project).some(p => p.name == "userrole")), using ID instead of NAME, but its the same result. Any help is appreciated:

 

I'm trying to create a Post Function on a transition of type "Fast-track transition issue".

Thank you in advance

 

Script: user.getProjectRoles(project).some(role => role.id == proper_id)

Error

 

Unexpected input: '(project).some(role =>' @ line 1, column 42.
   jectRoles(project).some(role => role.id 
                                 ^

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events