Run a Jira JQL from the browser.

Hello, I'm trying to run a basic JQL query directly from my browser.

For example the url I have now is:


This works as long as I am logged in as an admin, but it fails if I am logged out. How do I pass my admin user name and password credentials in the browser?

I've confirmed this works by running a curl command, but I need to be able to run this from the browser as well.

Thanks in advance.

1 answer

0 vote

Perhaps you want to do this via the api?

curl -D- \ -u admin:admin \ -X POST \ -H "Content-Type: application/json" \ --data '{"jql":"project = QA","startAt":0,"maxResults":2,"fields":["id","key"]}' \ "http://kelpie9:8081/rest/api/2/search"


Check out the api guide on queries.

I'm afraid not. I can successfully run it via the api, but my goal is to use the url directly from the browser.

I've seen this example to authenticate - but I've not tied the two together before to run a jql.

you might try writing a small web page that you can call to pull the data, like using a javascript to get the curl.

i will say, passing the credentials like this, is plain text so susceptible to capture.

Gotcha. I'll keep that in mind. Thanks for the info.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,265 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot