Hi,
We use scriptrunner and jira project automation.
Is there way to bypass required field check in automations ?
Hi, Renni,
While I'd personally advise against creation such exception as it breaks the purpose of having a required field, one solution I've seen for similar scenarios was to create a separate workflow transition only accessible for the automation user and/or a few admins where the fields are not required.My recommendation would be to define values for the "required" fields that could be provided by the automation.
With Scriptrunner you could add a behavior to the field, but I'll leave the specifics for someone with more experience on that, if you'd like to go that route.
Cheers!
Hi @Renni Verho
What problem are you trying to solve by doing this?
There is likely a different problem your team/organization was solving by making those fields required. Circumventing that may create other challenges, or re-introduce the original problem the required fields solved.
Kind regards,Bill
Hi @Bill Sheboy
We can use inactive assignee as example. We have automation to re-assigne issues to project lead if assignee comes inactive.
This automation should not check required field in this phase as new assignee will take care of those later.
Regards,
Renni
Hi, Renni!
In your example, is assignee a required field? Or...are you noting that:
If so, this seems like an opportunity: whenever a field changes to required, search for and update all empty values to set them. That will keep the information as current as you wish.
Hi Bill,
In our case there is some fields (variates project by project) which are set as required
eg. INT project decided to set Fix Version/s required and that is now blocking the update.
Your proposal would be ok in case there is one suitable selection, but often is better that project lead does those updates and that's why idea was to change assignee to project lead.
Based on responses I see we must handle these in another way (maybe manuall mass assigning to projet lead to make sure fields are filled). Automated handling of these cases in big company would save a lot of time.
Br,
It looks like you're new here. Sign in or register to get started.