I would like to automatically& periodically create an Excel report of one of my filters and then email it or place it on predefined shared network location.
How can I accomplish this ?
I'm using Jira v4.1.2#531
I guess that the subscription filter is not suffient as you need the Excel format itself.
I think this is not possible from Jira. A simple cronjob on the server you expect it to be stored which does a wget of the Excel url for your filter should do the trick. If the project has Anonymous access you need not provide any authentication. Else the Url should include os_username and os_password in Url so that the Jira knows who is trying to access the Url.
Also do remember to increase the tempMax to whatever value you need (in case of filters returning a long list of issues)
Does this help?
Sample Url
Thank you ! A bit after submitting the question I've stumbles upon the wget idea, now just trying to make it owrk. As my problem seems to be authentication, could you please specify where/how in the url should I place the username/pasword?
Again, thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The above is working fine but it is storing the file to the default system location, can we specify the location in the URL where we want the excel to be stored ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is now possible! Use the Excel Automation Plugin.
It supports both use case you mentioned:
Read the JIRA XLS automation tutorial for a detailed how-to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the answers are for Jira Server. So I'll post a sample request for Jira Cloud.
#!/bin/bash
# Usage:
# 1. Issue your API Token at https://id.atlassian.com/manage/api-tokens
# 2. Run the command like below:
# chmod u+x ./snippet.sh
# bash ./snippet.sh
HOST="example.atlassian.net"
USER="sample@example.com"
API_TOKEN="__YOUR_TOKEN__"
FILTER_ID="10106"
curl -L --request GET \
--user "${USER}:${API_TOKEN}" \
--url "https://${HOST}/sr/jira.issueviews:searchrequest-csv-current-fields/${FILTER_ID}/SearchRequest-${FILTER_ID}.xls?tempMax=1000"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If Excel as file format is not a strict requirement, you can export your filters to PDF and send those in emails periodally using the PDF Automation Plugin.
You can export filters to PDF files and copy those to file system paths as written in this guide (which relies on the PDF View Plugin's PDF API and some integration scripts written in Groovy).
The first option is the simpler to use if that meets your requirements. The second is 100% programmable, so your possibilities are endless.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Katy Rotman did it work??
@Renjith Pillai this page is dead http://confluence.atlassian.com/display/JIRACOM/Automating+JIRA+operations+via+wget could you please give us another link? Thank you!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.