I have a Custom field which is of type CheckBox.
What i want is, if all options of that checkbox custom field are selected, then only that post function should run.
Could some one please help me
What should the post function exactly do?
I personally would use Scriptrunner add-on. It has many build in post functions: See:
https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_post_functions
Post Function will run a hidden transition based on condition being true.
Condition is checkbox field shall have all the options ticked.
So need to create a groovy expression for checking that all options are ticked in the custom field
/Himanshu
See the answer of alexey:
https://answers.atlassian.com/questions/121964
def customFieldManager = ComponentAccessor.getCustomFieldManager()def customFields = customFieldManager.getCustomFieldObjects(issue)customFields.each {cf -> if (cf.name == '<CUSTOMFIELDNAME>' ) { return true;} else {return false; }}
*It is not working*
It looks like you're new here. Sign in or register to get started.