I have a custom field whose value changes in screen transition, based on the value, I need to show a field & make in mandatory using validator. Is it possible ? if yes do let me know.
So you are already using scriptrunner?
In a scripted validator, you can conditionally make a value mandatory, but I think you will not be able to hide/show the field within the screen.
So if you only want to make the value mandatory (and dont care if the field is visible all the time), then you can also use a validator.
Sounds like you want two things. Treat them as such
1: In a transition screen, if field 1 is set to a particular value, then show field b. else hide it.
Scriptrunner can do that(I think, i don't use script runner, I use power scripts which am pretty sure can do it as well)
2: In a validator, if field 1 is set to a particular value, then field B must also have a value.
Again you can do this with scriptrunner. Or with JSU etc.
Validators run after transition screens are processed. So you get you transition screen, and click submit, then the validator runs to make sure that everything is ok. ifs its not, it pops the transition screen back up for you to make corrections.
It sounds like you might have already invested a fair amount of time into designing the relevant screens, in which case ScriptRunner or PowerScripts are probably your best apps; however, ProForma forms could help you do what you want with the following features:
Forms instead of screens
You can use the form builder to easily layout the required fields, add validation requirements to individual fields, and include instructions or tips for users to follow.
Link fields in a form to Jira fields
Using linked fields in a form means that the form will display the same value as the Jira field.
Use conditional logic to show or hide sections in your form based on the specific values in the linked Jira field. For example you could ask for additional details if the Priority is set to High or Highest.
Automation & Workflow Validation
You can build an automation rule that automatically transitions the issue to a new status once the form is completed. This saves the user from having to fill in the form and then manually transition the issue.
Likewise you can also add a validator to the workflow so that the user cannot transition to the new status if the relevant form is not attached or submitted.
Full disclosure: I am the PM for ProForma, but we have built ProForma to answer the very question you raised.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events