Hi
I have a issue , my requirement is while creating that issue based on condtion i need to hide some of tabs present in its screen.
I wrote one behavior which work while editing but not working on create issue.
below i have pasted the code. with screen shot.
here while selecting "Project Type" == "Waterfall" then only i need to show these extra 4 fields otherwise i wont.
In the screen shot you can see if i select waterfall exra 4 fields should come, but even if i have not selected waterfall value its coming.
if(getActionName() as String == "Create") {
def projectTypeValue = getFieldByName("Project Type").getValue() as String
if(projectTypeValue != null) {
if(projectTypeValue == "Waterfall") {
showTab("BR Approvals")
showTab("FR Approvals")
showTab("SIT Test Plan Approvals")
showTab("UAT Test Plan Approvals")
}else{
hideTab("BR Approvals")
hideTab("FR Approvals")
hideTab("SIT Test Plan Approvals")
hideTab("UAT Test Plan Approvals")
}
}
}else{
hideTab("BR Approvals")
hideTab("FR Approvals")
hideTab("SIT Test Plan Approvals")
hideTab("UAT Test Plan Approvals")
}
Regards
Manas
I think I would use different issue types per Product Type and then an issue type screen scheme to control which fields are visible for each product type. That use of Jira tabs looks very confusing to me
Manas,
Remove the fields from Create Issue screen and instead add them to the View Issue screen
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had that in my mind too, but what is my doubt is if i remove it , then what will happen , when i will select "Project Type" == " Waterfall" ? from where i can show those tabs if they dont present in create screen?
i need to add them in edit and view screen but what about while create issue?
Regards
manas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.