Dynamically populate options in customfield type plugin (velocity template) on click of a button

Hi All,

I have a text field - user id  and i have created custom field type field plugin(Generic CF Type) - User Name

fetchUserNames.png


My requirement is to dynamically populate the options of a custom field User Name based on the value of a custom field User Id on click of a button Search available in the edit  velocity template of User Name field.

The custom field type plugin module populates the values on time of load of the screen,but not at run time when the user id is changed and search button is clicked. The search button should call a method in Java class which returns list of String objects.

 

I have read the following post -https://answers.atlassian.com/questions/153603 but could not find the solution.

Thanks 

Kapil

1 answer

1 accepted

This widget could not be displayed.

I have achieved this exposing REST service in the plugin and do an ajax call of the REST service in velocity file of that customfield

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

576 views 25 15
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