Skip to content
Yamuno
Browse

Automation, REST and JQL

Find the field ID

Open Jira settings → Work items → Fields and open the Markdown field. The ID is the number at the end of the page address: …/field/10049 is customfield_10049. In JQL you can also use the field's name in quotes, such as "Spec".

Automation rules

Send only the Markdown. Use Edit work item → More options → Additional fields:

{ "fields": { "customfield_10049": { "md": "## Release notes\n\n{{issue.summary.jsonEncode}} shipped in {{version.name.jsonEncode}}." } } }

Smart values inside md must be JSON encoded, as in {{issue.description.jsonEncode}}. A few seconds later the app fills in the rest of the value, so search and the view work.

REST API

The same body works with PUT /rest/api/3/issue/{key}. Jira rejects a field value over 32,768 characters, so keep Markdown sent this way under about 30,000 characters. Longer text has to go through the editor, which keeps it in the app's storage.

JQL

The plain text of the field is indexed, so a text search finds work items by what the field says:

project = PLAT AND Spec ~ "rollout OR retry"

JQL results for a text search on a Markdown field

Stuck on something this page does not cover? Ask the developers.