Skip to content

Instantly share code, notes, and snippets.

@TWHarr
Created July 7, 2015 16:25
Show Gist options
  • Save TWHarr/efb791cee819fe2b8cec to your computer and use it in GitHub Desktop.
Save TWHarr/efb791cee819fe2b8cec to your computer and use it in GitHub Desktop.
In requirements.json:
{
"ticket_fields": {
"duplicate_macro": {
"type": "checkbox",
"title": "Duplicate Macro Sent"
}
}
}
----
Removed the duplicate field parameter from Manifest.json, and edited the readme appropriately.
---
In app.js, to get the field set up by requirements.json:
duplicateField = this.requirement('duplicate_field');
In app.js to set the field:
ticket.customField(duplicateField,"yes");
or
ticket.customField(duplicateField,"no");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment