Add a button panel to the dashboard

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

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...

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.

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.

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

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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

78 views 0 11
Read article

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