Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using power automate HTTP/API tool to create issue. 3 fields have format issues causing errors

Mike Fisher
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 29, 2025

I am using a form submission to trigger a power automate flow. The flow uses the field responses from the submission to populate a JSON payload which is fed into power automates HTTP/API tool. I had some JSON formatting issues causing trouble but that was resolved in this post. https://community.atlassian.com/forums/Jira-questions/Using-power-automate-HTTP-API-tool-to-create-issue-Some/qaq-p/3032719#M1127833 

 

The other issue I am having is with a Short text (plain text only) field causing an error because it needs to be a string format. I also have 2 other Checkbox fields that cause an error because the output needs to be in an array.

 

I used power automate functions to convert the short text field output into a string but it still errors saying it needs to be a string format. Similarly I used the split function to turn the checkbox outputs into arrays but again it still errors saying they need to be arrays. I'm suspecting it has more to do with formatting code in the JSON payload itself, for the string especially. The checkboxes I could see how it wants them in an array and maybe I'm just not providing it exactly what it needs.

 

Below is the XML from a a jira issue where I manually populated the requester field

<customfield id="customfield_10049" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
<customfieldname>Requester</customfieldname>
<customfieldvalues>
<customfieldvalue>Mike</customfieldvalue>
</customfieldvalues>
</customfield>

 

And this is the XML for the checkbox fields

<customfield id="customfield_10909" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
<customfieldname>Delivery Method</customfieldname>
<customfieldvalues>
<customfieldvalue key="11944">Pull on Demand</customfieldvalue>
</customfieldvalues>
</customfield>

 

and

 

<customfield id="customfield_11040" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
<customfieldname>Report Frequency</customfieldname>
<customfieldvalues>
<customfieldvalue key="12038">Hourly</customfieldvalue>
</customfieldvalues>
</customfield>

 

Based on the "key" I am guessing these need to be in an array as key value pairs. The output for the checkbox fields look like this for one and similar for the other

The power automate GUI shows the output as:

PA GUI.png

While the code view shows the output as:
[
    "E-Mail attachment",
    " Other"
]
Still trying to figure out why there is a space before Other, that space doesn't exist on the form response so I think power automate is adding it. I should be able to trim it but want to sort out the main issue first.
As far as I can tell the requester field is outputting a string as shown here :
"Mike" so I'm not sure what else needs done with this one. Hoping again it's just something I missing in the formatting of the JSON.
This is the JSON I am sending for the requester string. The value is coming from a field from a form that power automate is grabbing.
  "customfield_11049": {
    "value": "@{triggerOutputs()?['body/60']}"
  }
I did try hard coding it as  below but I still get this error
"customfield_10049": { "value": "Mike" },
 
"body": {
        "errorMessages": [],
        "errors": {
            "customfield_10049""Operation value must be a string"
        }
And the errors for the checkbox fields are as below. Interestingly those fields show the field names rather than their custom field names so I again assume there is something I don't understand about this field type and how it needs to be formatted.

            "Report Frequency": "Specify the value for Report Frequency in an array",

            "Delivery Method": "Specify the value for Delivery Method in an array"

 

Thanks!!!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events