This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
conditions [2018/04/12 08:06] root added 2 more conditions |
conditions [2018/04/13 10:39] (current) root Added new condition |
||
---|---|---|---|
Line 32: | Line 32: | ||
</ | </ | ||
- | === only allow transition if none of the values in custom fields are " | + | === Only allow transition if none of the values in custom fields are " |
<code java> | <code java> | ||
Line 49: | Line 49: | ||
return true | return true | ||
} | } | ||
+ | </ | ||
+ | |||
+ | === Allow only if user is member of role " | ||
+ | <code java> | ||
+ | import com.atlassian.jira.component.ComponentAccessor | ||
+ | |||
+ | def selectedMyField = cfValues[' | ||
+ | |||
+ | |||
+ | def userUtil = ComponentAccessor.getUserUtil() | ||
+ | |||
+ | isUserMemberOfRole(" | ||
+ | |||
+ | |||
</ | </ |