Forums

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

Jira Cloud: Conditionally show a custom field based on a selected option in multi-select field.

Dinesh Loyapalli January 16, 2024

On our Jira Cloud we have a Components field which is of multi-select, so if Component contains one of its value as “Test”, I have to hide the “Acceptance Criteria” multi select field.

I was able to conditionally hide/show fields for single select but for multi select and components fields I am having trouble to hide/show other fields.

Any help on this request will be highly appreciated.

1 answer

0 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2024

Hi @Dinesh Loyapalli

Welcome to the community!

What are you using today to hide/show fields? Usually this functionality requires a plugin. 

Regards,

Fabian

Dinesh Loyapalli January 16, 2024

Hi Fabian,

Sorry I forgot to mention about it in my previous post. We are using Script Runner for Jira Cloud and Behavior's.

Below is the sample behavior script:

 

const components = getFieldById('components')?.getValue().value
const bugOrigin = getFieldById('customfield_10000')

bugOrigin.setVisible(false)

if(components.contains("Test"))
{
    bugOrigin.setVisible(true)
}
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 17, 2024

I believe it may not be supported.  I had the same issue with the "Multiple User Groups" fields and it's not supported.  I suggest you contact Adaptivist about the "components" field. Cloud has a lot of limitations.

Regards,

Fabian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events