Forums

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

Auto fill data based on user first 2 characters

ArjunKumar Selvamani June 19, 2018

Hi All,

 

I have a use case where I am trying to auto fill few fields based on user inputs.

 

Say for example I have a custom field as "Country", there if I just type "IN" it should show all the suggestions for the country starting with "IN" like India, Indonesia, etc..

 

Can anyone help me in this. Or is this possible in JIRA with the groovy script.

2 answers

0 votes
Alexey Matveev
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.
June 20, 2018

ScriptRunner will not help you with you task. The only way to use Java Script but this solution is not mantainable.

Payne
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.
June 20, 2018

@Alexey Matveev - I've read about other Javascript solutions that are similarly described as "not maintainable". What does that mean in the context of Jira?

Thanks!
-Payne

Alexey Matveev
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.
June 20, 2018

It means that it can have bugs and also it would be difficult for other developers to find you java script and make it work or fix it.

Payne
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.
June 20, 2018

Gotcha; thanks!

0 votes
Grigory Salnikov
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.
June 20, 2018

Hi!

I've found a similar question here.

Have a look at Benji Mommen's script down there.

I haven't tried it but it looks as it may work.

Suggest an answer

Log in or Sign up to answer