Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,370,153
Community Members
 
Community Events
168
Community Groups

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

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

Hi @Fiqi Ferdiansyah ,

you can use this code:

currentUser.isInProjectRole("Project Role Name", issue.get("project"))

hi David @David Fischer _Appfire_ 

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 ?

hi david @David Fischer _Appfire_ 

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 Sep 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”.

Hi Hana @Hana Kučerová 

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

Hana Kučerová Community Leader Sep 16, 2022

Hi @Fiqi Ferdiansyah ,

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

Like Fiqi Ferdiansyah likes this

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

Atlassian Community Events