简体   繁体   中英

how to export issues retrived from a search filter as xml automatically in JIRA

I have a customized filter which will give me list of issues.

Currently there is a option to export the filter results to XML. Is there any way to automatically export the XML . Currently i have to export it to XML format every time.

My requirement is to export the search filter to XML using a script. I want the XML file to be downloaded to my local machine every day at a particular time after that i will process the XML file for my desired operation.

You can right click the Export to XML link while logged into JIRA and choose Copy Link Address if you are using Chrome. (Forget what it is in Firefox/IE/Safari/Etc.)

This will give you a link like:

https://dev-jira.myhost.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+test+and+issuetype+%3D+Story&tempMax=1000

Then you can use something to just hit that URL to download the results like cURL:

curl -o my-output.xml -u myUser:myPassword "https://dev-jira.myhost.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+test+and+issuetype+%3D+Story&tempMax=1000"

If you're using Unix based OS you can set this up on a cron, if you are using windows you could set it up to run using the Task Scheduler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM