Add a button panel to the dashboard

Labatt March 26, 2013

We are looking to create a few scripts to automate certain actions. For example, we want people to be able to click on a button to create a certain type of issue and several subtasks to go along with that issue. There are about 5-6 of these, and we're looking at Script Runner and JJUPIN to perform the actions.

Is there any (easy) way we can put a widget on a dashboard that has all of these buttons that run these scripts?

2 answers

1 accepted

0 votes
Answer accepted
Florin Haszler _Alten Kepler_ March 28, 2013

You may use the SIL Runner Gadget from JJUPIN: http://confluence.kepler-rominfo.com/display/JJUPIN/SIL+Runner+Gadget

Labatt March 28, 2013

I actually tried that, but the gadget comes up with an error on my dashboard and the gadget itself renders wrong... first input box has a label of "__MSG_sil.runner.program__". Second one has a label of "__MSG_sil.runner.parameters__" and then underneath it is "Cannot get SIL scripts. Status: error undefined undefined". In the error logs I'm seeing:

2013-03-29 14:37:05,075 http-bio-8080-exec-9 ERROR xxx 877x8806x1 1r2o44w xxx,127.0.0.1 /plugins/servlet/gadgets/makeRequest [renderer.internal.http.HttpClientFetcher] Unable to retrieve response

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)

I'm assuming these are related. We use the proxying method to run both Jira and Confluence on the same server. I've moved on for now, but if you have any ideas...

Florin Manaila
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 28, 2013

Indeed, the errors are related. The gadget error usually occurrs when you are accessing JIRA with a URL other than what is configured in the General Configuration.

Labatt March 28, 2013

The base URL in the general config matches, but for our development server (this one) we're using a self-signed certificate... so that might have something to do with it.

Radu Dumitriu
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 28, 2013

Most probably, yes, it is because of the self-signed certificate.

Labatt April 4, 2013

We put a real cert in there and the widget now works. You might want to capture this somewhere in a FAQ. Thanks!

0 votes
JamieA
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 27, 2013

You'd have to write the widget if you were using script runner. It would be fairly easy as script runner has a REST api, so it's just a case of writing some javascript to create the buttons.

The way to do your specific task in script runner would be to just allow users to create the task normally, but have a post-function or listener create the sub-tasks.

JJUPIN does have a dashboard gadget though: http://confluence.kepler-rominfo.com/display/JJUPIN/SIL+Runner+Gadget

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events