Scripted Conditions

The following script displays conditions 'translated' into groovy script:

Further details on the following API can be found on the Behaviours API Quick Reference page.

An error occured

There is a problem with the file path provided or a failure to connect with Bitbucket. Check the File Path provided, Application Link for Bitbucket Data Center or the permissions of the app password for Bitbucket Cloud. Contact your system administrator.

Line 9: If current user is reporter AND current user is current assignee make the changed field hidden, else shown

Line 15: If current user in group 'jira-administrators' allow the inline edit of the changed field

Line 23: If current user is 'luke' or current user in project role 'Developers' make the changed field read-only and show an error message, else clear the error and make the field editable again

Line 31:  If current user is Project Lead add a description at the changed field, else clear the description

Line 38: If current user in user custom field value add a default value in the description

Line 46: If current user in group custom field value then make the changed field required, else optional.

Line 52: If workflow Action is 'Start Progress' or workflow Step is 'In Progress' then make the changed field required, else optional.



Related content

On this page