Forums

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

Import list of data in drop down custom field?

NAW
December 21, 2015

Hi,

I have a huge list of data to import to a drop down field.

I know we can do this via script runner but I wanted to know if we could do it without buying any add on? 

 

Thank you,

Naw

4 answers

0 votes
Dominik
October 17, 2016

Sry, I have misunderstood you


I will try to explain exactly what I want to do.

In a JIRA Issue, I can add Links to other Issues or create  a Weblink (as in the first picture above)

I want to create in this Dialog a new panel like in the second picture.

There I want to have an input field

then when i press Link

image2016-10-18 9:57:36.png

I want to run a groovy script in the background, which creates an Link using the value of the input field and display it in the Issue Links panel in the issue view (as like when you create a link to another plugin)

 

My questions/ problems:

how to create the view of the input field when i click on my panel ("Test" in the picture)?

(Which files do I need)

How to run a Script when i press Link?

Where to store that script?

 

I think it is not possible to create all the files in the JIRA ScriptRunner Webview?

Maybe it's easier to create a plugin than to try that with the ScriptRunner Plugin?

 

Thanks for your help

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 Champions.
October 17, 2016

I know what AUI stands for, but I don't know what you mean still. 

Let's forget about an AUI.

It sounds like what you want to do is add a javascript resource, and bind the click handler for that link to creating a dialog pane. Have a look at the js here: https://docs.atlassian.com/aui/latest/docs/dialog.html

0 votes
Dominik
October 17, 2016

AUI = Atlassian User Interface (HTML and JavaScript)

For the Dialog I need a AUI

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 Champions.
October 17, 2016

Sorry, what's an "AUI"? In this context.

Suggest an answer

Log in or Sign up to answer