hi,
I have a transition screen with 3 tabs. And wont to make comment field required only in one tab, in another it must be hiden. Can i make this with baheviour plugin?
I do not hink it is possible. Actually there is only 1 comment field and it is not linked to any tab. You can see it in the html code. That is why you should link behaviour to tabs and if a tab is activated you should hide or show the comment field depending on your logic. But it is not possible to link behaviour to a tab.
You can not do it with behaviours. You could do it with JavaScript but I would not do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can do it. You need to add the field, which value influences the other field, to the behavour and put your logic in the script for the field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
def problemField = getFieldByName("Field with value").getValue()
def sum = getFieldByName("first field to require")
def link = getFieldByName("second field to require")
if(problemField == "a" || problemField == "b" ){
sum.setRequired(true)
}else if(problemField =="c"){
sum.setRequired(true)
link.setRequired(true)
}
I try to do it with this code. It works. But it does not make field required based on current walue. I must to perform transition(or save data to the field with value) and then, during next transition it will be required. But i wont to chang this in current time, not only after save.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
def problemField = getFieldByName("Field with value").getValue()
def sum = getFieldByName("required field a")
def link = getFieldByName("required field b ")
if(problemField == "a" || problemField == "b" ){
sum.setRequired(true)
}else if(problemField =="c){
sum.setRequired(true)
link.setRequired(true)
}
i try to do it with this code. It works, but it make field required not in current time. I must to perform a transition, and then in next transition screen it will by OK. I wont to dynamicly change required or not. How i can do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to add the problemField to the behavour (add field) and set the script for the field. In this case the script will fire all the time the problemField changes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tabs are just a logical separation of a screen. To JIRA it is one screen so if the plugin can do it with a screen it should be able to do it with the tabs
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.