web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JIRA HTTP call - inval...
Power Automate
Unanswered

JIRA HTTP call - invalid json

(0) ShareShare
ReportReport
Posted on by

Hello,

I am making a call to Jira, using Search for issues using JQL (POST), but when I enter the filter in the "jql" field in JQL language, I get the error "Enter a valid json".

The filter a use in Jira: 

project = "PMO" AND status = "PMO Backlog" OR status = "Preparation" OR status = "solutiondesign" OR status = "Implementation" OR status = "Rampup" OR status = "In Operation" OR status = "Final invoice"

And using the documentatio, this is the doby of the HTTP call: 

{
"expand": [
"names",
"schema",
"operations"
],
"fields": [
"summary",
"status",
"assignee"
],
"fieldsByKeys": false,
"jql": {"project = "PMO" AND status = "PMO Backlog" OR status = "Preparation" OR status = "solutiondesign" OR status = "Implementation" OR status = "Rampup" OR status = "In Operation" OR status = "Final invoice""},
"maxResults": 100,
"startAt": 0
}

 Anybody knows how I should to implement the filters in the body call?

 

Thanks. 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi,

     

    Since it says invalid JSON I took the string and put it into Notepad++ and try to format it as JSON and I get more information

    FLMike_0-1695489294276.png

     

    So I looked at closely and I notice that you have

    jgl: { longstring }

     

    What you should have occurrding to the CURL examples is 

    "jql" : "string" NOT jql: { "string" } which is invalid JSON anyway 

     

    After changing that you still have the issue that you aren't escaping the double quotes, which I added escapes for.

    So here is the updated json

     

     

    {
    	"expand": [
    		"names",
    		"schema",
    		"operations"
    	],
    	"fields": [
    		"summary",
    		"status",
    		"assignee"
    	],
    	"fieldsByKeys": false,
    	"jql": "project = \"PM\" AND status = \"PMO Backlog\" OR status = \"Preparation\" OR status = \"solutiondesign\" OR status = \"Implementation\" OR status = \"Rampup\" OR status = \"In Operation\" OR status = \"Final invoice\"",
    	"maxResults": 100,
    	"startAt": 0
    }

     

     

     

    Please note that this has nothing to do with Power Automate though and I just searched for the correct format and gave it to you.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • aorro933 Profile Picture
    on at

    Hello, 

     

    Thank you for your reply. The JSON is working now but I'm getting a new error: 

     

    {"errorMessages":["The value 'PMO' does not exist for the field 'project'."],"warningMessages":[]}

    But the projects "PMO" does exit in the tenant. Do you have any idea which could be the issue? 

    aorro933_2-1695541719056.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard