This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
conditions [2018/04/12 08:06] root |
conditions [2018/04/13 10:39] (current) root Added new condition |
||
---|---|---|---|
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(" | ||
+ | |||
+ | |||
</ | </ |