How to Set condition Workflow, JMWE Groovy Script Condition (Any user in Project Role )

Fiqi Ferdiansyah September 14, 2022

Hi Community,

I have a question, how to set script JMWE Condition Workflow Groovy Expresion "Any user in Project Role" same as JSU addons

2 answers

2 accepted

1 vote
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2022

Hi @Fiqi Ferdiansyah ,

you can use this code:

currentUser.isInProjectRole("Project Role Name", issue.get("project"))
Fiqi Ferdiansyah September 15, 2022

hi David @David Fischer 

Thank you for respon, 

i can try this code, but code is not run in JIRA,

any idea for another script groovy for about this ?

Fiqi Ferdiansyah September 15, 2022

hi david @David Fischer 

so sorry, after i try again, i think, i put the wrong code, and after i run it again, the result is working as i want, so thank you david

0 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2022

Hi @Fiqi Ferdiansyah ,

you don’t need to use any application, this condition is available in Jira natively, it is called “User Is In Project Role”.

Fiqi Ferdiansyah September 15, 2022

Hi Hana @Hana Kučerová 

does this “User Is In Project Role” have originally jira or the steams plugin ?

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2022

Hi @Fiqi Ferdiansyah ,

there’s no need for plugins, Jira itself contains it.

Like Fiqi Ferdiansyah likes this
Fiqi Ferdiansyah September 16, 2022

hi Hana @Hana Kučerová 

Thanks for answer, 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.11
TAGS
AUG Leaders

Atlassian Community Events