conditions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| conditions [2018/04/12 08:06] – added 2 more conditions root | conditions [2026/02/01 12:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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(" | ||
| + | |||
| + | |||
| </ | </ | ||
conditions.1523534774.txt.gz · Last modified: (external edit)
