Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

System Fields Behavior not working

Alvin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 29, 2018

Hi Community, I am trying to show/hide and make fields required using behavior within System Fields (Priority, Resolution) but even the sample in Scriptrunner Behavior is not working but it throws no errors. Can you please help me

import com.atlassian.jira.issue.resolution.Resolution

def resolutionField = getFieldById("resolution")

def fixVersionsField = getFieldById("fixVersions")

def resolution = resolutionField.getValue() as Resolution

if (resolution.name == "Fixed") {

fixVersionsField.setRequired(true)

fixVersionsField.setHidden(false)

} else {

fixVersionsField.setRequired(false)

fixVersionsField.setHidden(true) }

 

it just not follow the behavior. 

1 answer

0 votes
Alvin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2018

Already fixed, sometimes it is just not working. I dont know if its a bug or something

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events