Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Customized page using JIRA which can autorefresh

Manish Ranjan March 1, 2012

want to create a customized page using JIRA functionality which can autorefresh it in say 15 sec interval any direction is appreciated

4 answers

2 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2012

If it's the assigned to me gadget that you want to change the refresh rate, then there is a really simple answer if you also have Confluence. Edit a page, bring up the macro browser & insert the gadget you want. At the bottom should be an option to refresh, set it anything, it doesn't matter. Save.

Then look at the macro that has been created in your page. It should have a refresh parameter. Change this to be your new rate e.g. refresh=1 for every minute. If you put something like refresh=true then it will refresh as fast as it can & will massively increase the load on your jira server.

{gadget:url=http://jira.xxxxxx.com:8080/rest/gadgets/1.0/g/com.atlassian.jira.gadgets:filter-results-gadget/gadgets/filter-results-gadget.xml}filterId=filter-11027&num=10&columnNames=--Default--&isConfigured=true&refresh=1{gadget} 

0 votes
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2012
Why not just a meta tag, please see http://en.wikipedia.org/wiki/Meta_refresh
Manish Ranjan March 2, 2012

but to embed the meta tag i need to figure out the source of "assigned to me" jsp right ? i tried but couldnt do the same. i have been doing research on this since wednesday so if i asking something silly am sorry,just to add i have not been able to add my own Custom page to JIRA as mentioned above so i am kinda stuck ..

Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2012
Oh sorry, i hadn't seen your comment that you want to override the refresh period of the gadget. My answer was meant for a classical webwork action page, so probably this anwer is not useful.
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2012
you should search through all gadget.xml files in the Atlassian source tree to find the html and js code that makes up the assigned to me gadget.
Manish Ranjan March 4, 2012

when you say altassian source tree you mean in Jira installtion which is at /opt/atlassian/jira right ??i have been trying to backtrace the xml file but no success yet .. will try harder .. thanks for your help .. any pointer to search the same will be really helpfull. Manish

Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2012

no i mean the source code that you can get when you buy a commerical license. You will not find anything in the installed distribution since the gadget.xmls live in JAR files.

Manish Ranjan March 4, 2012

okay cool .. i do have a commercial license , will look in to that . Thanks for your help

0 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2012

Is this a jira dashboard you are trying to get to refresh every 15s?

The old skool approach would be to have an HTML page with frames & a piece of javascript that reloaded your target page every 15s but that would be nasty!

Manish Ranjan March 2, 2012

may be i will have my own gadget doint it for me .. but as of now i am facing another problem where i am able to see my gadget in plugins but not able to add it to the newly created dashboard.

can you also please help me in how can i add my own custom page to JIRA dashboard .. That would be in form a gadget right ?

also say i want to modify the "Assign to me" gadget providded by JIRA for a time less than a min rather than the options provided by JIRA which is atleast 15 mins.. how can i do that ?

0 votes
Thomas Schlegel
Community Champion
March 1, 2012

I think you have to explain this a little bit more. I have no idea what you want to do... Sorry

Manish Ranjan March 1, 2012

actually i want to write a plugin which will ahev a customized landing page and the page needed to be be refresh at an interval of 15 sec .

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events