I would like to automatically set the flagged(impediment) field using JIRA ScriptRunner Behaviours.
Below is my script:
def flagged = getFieldById("customfield_10100")
flagged.setFormValue(["Impediment"])
This does not seem to work and I am not getting errors either.
Please assist