How to make Create Jira issue Inline script work for additional fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I want to create issue dynamically based on the value added by user via create jira issue catalog item. But some fields in jira mandatory such as severity, Those can be set only via the additional fields. But whenever i add and return inline script , It always gives me this payload error
check screenshiot for reference,
here is code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Sunpreetk ,
The payload error is because Jira expects its fields in a specific JSON structure when you create an issue via API, but you’re currently returning an encoded query string (ServiceNow-style field=value^field=value) instead of the JSON Jira needs.
{
"fields": {
"customfield_10189": { "value": "S4 Trivial" },
"customfield_13815": { "value": "Once on one device" }
}
}