Is there any way to get the url for the query which was used to fetch data?

I fetch the issues by running 

 

all_issues = jira.search_issues(query,maxResults=500)

 

I get the issues fields, IDs, labels and such data. But is there a way to get the url used to pull the data? To keep it simple, I want the link which when accessed gets me to the JIRA website for the respective 'query'. 

Thank you

 

1 answer

This widget could not be displayed.

Run the query and look in the url bar in the browser.

But if you're "pulling" the data, you probably mean you want a copy of it in a format for a computer to read rather than a web page.

See https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues

I kinda found a work around and did the following:

  1. Every JIRA query/search page starts with this     'https://jira.forge.avaya.com/issues/?jql='.
  2. And as stated in the question I use                          'all_issues = jira.search_issues(query,maxResults=500)' to get the issues.
  3. So I use the query from the above line and pass it to urllib2.quote( ) to encode the query.
  4. So to get the url I have to do              "https://jira.forge.avaya.com/issues/?jql=" + urllib2.quote(query)

 

Thanks @Nic Brough [Adaptavist] for the quick reply, appreciate it. 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

160 views 2 0
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