Forums

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

I need a script, when the changing a field work-notes should pop up

Rajesh Kappa March 5, 2018

Hi,

When the user changing the "Group"(custom field), I need a pop up in that users need to mention why they are changing the group. please provide me a script that will allows this functionality.

Thanks,
Rajesh.

1 answer

0 votes
Brittany Wispell
Community Champion
March 5, 2018

Hey @Rajesh Kappa

import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField

FormField CF = getFieldByName("Group CustomField")
FormField Other = getFieldByName("Why Changing Group Text Field")

def val = FC.getValue()

if (val == null) { // if With Customer is selected
Other.setHidden(false) // show the With Customer Notes field
}
if (val != null) { //if Pending is selected
Other.setHidden(true) // hide the With Customer Notes field
}

You can put this on a behaviour if you're using ScriptRunner for Jira Server. You'll need to change the field names to your own. Hope this helps.

Rajesh Kappa March 13, 2018

Thanks for your response, the script don’t work me, I think it’s possible with script lisener currect me if I am wrong  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events