jira new link action from more pulldown

Hi all,

My customer has a request.  The request is for a new menu pull-down option that essentially does exactly what more -> link does but has a different name and has only one link option.  If I were a little more experienced at writing plug ins I am sure this would be fairly straight forward, but I am not.  

Here is the senario.  I have completely automated the hot-fix process, short of one little problem.  When more than one JIRA issue needs to be associated with the hot fix, one of them is cloned through the clone plus plugin, and all fields are automatically, correctly populated.  The other issues then need to be link to said hot fix issue, and my customer wants a unique menu item for that.

Any ideas?

My only thoughts were to either have a issue field that simply lists them, but then they are not two way linked. Or to have a text field that lists them and autolink them in a post function.  The problem with that is it does not account for typos etc

Thanks,

Robert

4 answers

1 accepted

This widget could not be displayed.

Found this, which will have to work unless anyone else knows of any commercial plugins that would create a customized link menu item. https://developer.atlassian.com/jiradev/jira-platform/guides/other/tutorial-adding-menu-items-to-jira 

The solution I am going to imploy is to use the skeleton from the above which created a menu item for a web link.  And then have the web-link use the CLI to create the link.

What CLI lol?    Only the best plugin I have ever used.   smile_  https://marketplace.atlassian.com/plugins/org.swift.jira.cli/cloud/overview

I like the Bob Swift plugins and their support is fantastic!

Steven Behnke Community Champion Aug 24, 2016

Oh yes Bob Swift's CLI. Yes we tend to sell it a lot. smile 

This widget could not be displayed.

Sorry, I did intend to respond more quickly. Adding a 'web-item' would let you add a menu item to say, the operations-operations menu.

This isn't the whole picture, though. It might be worth looking at the Source Code for the linking feature inside of JIRA in case you can reuse the link dialog, but I can't seem to find the link dialog in 'JIRA.Forms' javascript library.

If you need to create your own UI, you should trigger your own javascript. Perhaps your 'submit' button could use AJAX to talk with JIRA and create the link.

Script Runner allows you to define web-technology (resources, web-items) as well as other logic without creating a plugin. That's the only commercial option I can think of that would help you.

I have and frequently use script runner.   Thanks!

Oh! Yeah, well, in that case you can define a web-item and a html and js web resource that is triggered when you click on it. The dialog that comes up should communicate with JIRA via AJAX over the REST API to update the appropriate issue.

If you tag you question with scriptrunner the Adaptavist guys are very quick to respond and others (like me) are usually willing to help too.

True, but I come from a past of writing web tools that are based bash scripts.  It is the world I have known for 30 years, and so if the cli can create a link then I would start with that.  I should really dive into the REST API and have tried, but then other priorities prohibited me from diving very far.  I use script runner all the time for scripted validators and post functions which uses a the API, but only in a basic manner...   Thanks!  

This widget could not be displayed.
Steven Behnke Community Champion Aug 23, 2016

Are you looking to attack this with custom development or with plugins? This isn't possible out-of-the-box.

This widget could not be displayed.

Yes or yes smile  I am looking to attack this any way I can.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

45 views 2 2
Join discussion

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