The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Adding 2 custom fields that are coupled

chethana.harve
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2023

How do I add 2 custom fields in an issue that are coupled to each other?

For example:

The fields are 'Employee name' and 'Expertise'. When I add the 'Employee name' field the 'Expertise' field also appears.

Additionally, I'd like to use a dropdown for 'Employee name' (dropdown uses a list of names that I can add to separately). 'Expertise' allows free form text. 

Is this possible on Jira?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Joseph Chung Yin
Community Champion
December 8, 2023

@chethana.harve -

How are you trying to maintain your setup, are you tracking your employees via individual issues (i.e.  one issue for Bob's record, and another issue for Mary's record)?

If, so - 

Out of the box, you will need to create custom fields for your env (assuming you have the site admin rights) -

1) "Employee name" - Typically, it should be a user picker data type (single user or multi-users).  By default it pulls from your env on all the licensed users accounts automatically.  So as long as you manage your users properly in the env, then you should be good to go).  It is already a dropdown list format for the data type by default.

2) In addition to point #1, if you need to manage the dropdown list and not use the user picker data type, then you need to create the field using single select/multi-select dropdown list data type.  You will have to manually update the dropdown list options every time a set of users needs to be added to the field.  (This is done vis Systems >> Issues >> Custom fields UI)

3) "Expertise" can just be a single line of text data type.

In regards of showing both fields where when you populate the "Employee name" field then the "Expertise" field will be displayed.  You will need to acquire third party add-on to implement the functionality.  By default out of the box, it is not possible.

You can take a took at Scriptrunner for Jira and Scriptrunner for Jira's Behavior component.  To use Scriptrunner for Jira's Behavior component add-on, you must have Scriptrunner for Jira add-on first.

https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?tab=overview&hosting=cloud

https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?tab=overview&hosting=cloud

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

TAGS
AUG Leaders

Atlassian Community Events