Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a jira URL to do a JQL search

Hi -

I have a script that reports linkage errors to our users. I would like to generate a URL that will bring up a page that shows all of the issues that contained an error for the user. So far I have been able to create something like the following:

https://industrialtoys.atlassian.net/secure/IssueNavigator.jspa?jqlQuery=issue%20in%20(AFCT-104,AFCT-35,AFCT-34,AFCT-4,AFCT-42,AFCT-33,AFCT-61,AFCT-43,AFCT-59,AFCT-78,AFCT-56,AFCT-57,AFCT-58)

However, this just brings up the jql search page with the query entered into the text box but it does not actually initiate the search. The user has to push the "Search" button to get it to work. Worse, if a previous search was active it will bring up the search results of the previous search fooling the user into thinking the search actually worked.

How can I construct a URL that will both entered the JQL search string and actually perform the search?

Thanks!

Brent

3 answers

1 accepted

Awesome. Thanks! Are these parameters documented anywhere? I googled around for it before I posted the question but could not find anything...

Don't think so. You will see it when you run a search from History.

IssueNavigator.jspa was deprecated at some point. If anyone finds this post in the future, use /issues/?jql= instead.

For example

https://yourJIRAurl/issues/?jql=project%20%3D%20"Service%20Desk%20Maintenance"%20

Hi, 

This is how i did

https://my_jira_url/rest/api/2/search?jql=assignee=my.user%20and%20status%20=%2010000

'%20' is used to space and the number 10000 is the status "in dev" in my case.

Sometimes the value that is displayed in the field isn't the logical value of the field, in this cases i just use some api to get the issue data and find the field that i want to know the correct value.

Like this:

https://my_jira_url/rest/api/2/issue/''ISSUE_ID'

Json property that cotains the status name and the id :


"name":"Em Desenvolvimento",
"id":"10000",

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you