When a form submission is submitted it is triggering a power automate flow to run. In that flow I am using the HTTP/API tool to create a JIRA issue. All of that works fine, the issue gets created but not all fields are populated even though the flow doesn't fail or produce errors.
The HTTP tool uses https://odwlogistics.atlassian.net/rest/api/3/issue/ as the URI, it is using basic auth with an API key, again all that works. Many of the custom fields are paragraph fields in JIRA. For example:
customfield_11051 is a jira paragraph field and it updates properly based on
"customfield_11051": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/68']}",
"type": "text"
XML for this field
<customfield id="customfield_11051" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
<customfieldname>General Manager</customfieldname>
<customfieldvalues>
<customfieldvalue><p>GM Name</p></customfieldvalue>
</customfieldvalues>
</customfield>
customfield_11073 is another paragraph field but it does not update based on
"customfield_11073": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/84']}",
"type": "text"
XML for this field
<customfield id="customfield_11073" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
<customfieldname>New or Revision Other Response</customfieldname>
<customfieldvalues>
<customfieldvalue><p>Revision Other</p></customfieldvalue>
</customfieldvalues>
</customfield>
The text @{triggerOutputs()?['body/68']} and similar is the power automate field that is being used to populate that text. I have confirmed via power automate that each of these fields is outputting text/strings which is what I would expect the paragraph fields to look for as input.
Here is the full JSON body I am sending via the API tool.
Working fields:
Summary, description, issue type, customfield_11051, customfield_10879, customfield_11046, customfield_11048, customfield_11050, customfield_11052, customfield_11053
Fields not working:
customfield_11073, customfield_11075, customfield_11074, customfield_11049
{
"fields": {
"project": {
"key": "ABI"
},
"summary": "@{triggerOutputs()?['body/71']}",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/72']}",
"type": "text"
}
]
}
]
},
"issuetype": {
"name": "Report"
},
"customfield_11046": {
"value": "@{triggerOutputs()?['body/82']}"
},
"customfield_10879": {
"value": "@{triggerOutputs()?['body/20']}"
},
"customfield_11048": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/74']}",
"type": "text"
}
]
}
]
},
"customfield_11050": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/75']}",
"type": "text"
}
]
}
]
},
"customfield_11052": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/76']}",
"type": "text"
}
]
}
]
},
"customfield_11053": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/77']}",
"type": "text"
}
]
}
]
},
"customfield_11051": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/68']}",
"type": "text"
}
]
}
]
}
},
"customfield_11073": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/84']}",
"type": "text"
}
]
}
]
},
"customfield_11075": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/85']}",
"type": "text"
}
]
}
]
},
"customfield_11074": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "@{triggerOutputs()?['body/86']}",
"type": "text"
}
]
}
]
},
"customfield_11049": {
"value": "@{triggerOutputs()?['body/60']}"
}
}