Forums

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

how to implement dynamic fileds in jira

cherry kumar December 13, 2018

example (issue create screen )

marital status:- 1)Yes

                         2)No

if we select yes then automatically two fields appear on the same screen

if we no no need to show fields

implement this feature without using any add-on

3 answers

1 vote
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.
December 13, 2018

Hello,

You would need an add-on for it. 

You could also use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could use the Live Fields feature:

https://confluence.cprime.io/display/JJUPIN/Live+Fields

The code for your requirement would look like this:

if (argv["customfield_10100"] == "Yes") {
lfShow("customfield_10101");
lfShow("customfield_10102");
} else {
lfHide("customfield_10101");
lfHide("customfield_10102");
}

customfield_10100 is the radio button field.

customfield_10101, customfield_10102 are the fields, which must be shown.

0 votes
Marc Minten (EVS)
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.
December 13, 2018

use behaviours from scriptrunner!

0 votes
Sreenivasaraju P
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.
December 13, 2018

Suggest an answer

Log in or Sign up to answer