Hi,
I have these two fields Parent Link and Epic Link for an issue type and I would like to do that at least, one of those two, needs to be filled in. Let's say:
I don't want to do the validation on a transition because the users are allowed to change these fields any time. A couple of questions
Thank you!
There are some requirements from you initial post which will make it impossible (if I am not missing something):
- not in a workflow
- not a validator/condition
- not using Automation
- without Apps
- directly, anytime an user does a change
I think it cries for some kind of listener, this however will not be possible without App.
Have you made any progress meanwhile?
At least for Automation I'd say it is not the perfect approach, it happens after a transition, a condition would work better (but as you said only during a transition).
I probably misled you by waying "no extra plug-ins or add-ons". Workflows and Jira Automation are welcome. I usually manage mandatory fields in each Issue type field configuration of a Project, but I know it can't be done like that if you want an "or mandatory" involving more than 1 field.
I'm striving for a reactive idea in Automation: given a timeframe of 2 minutes, if both fields are empty, take the value of the last non-empty field and set it back. Then notify the user to solve the issue.
It's not the best approach, but I think it can do the work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm curious if you ever found a solution to this within the workflow settings. I was just looking to do the exact same thing for epics. To move them to "Done", it must either have a parent link or a fix version. But the validators and conditionals are all basically "AND" operators.
Right now to avoid "yet another plug-in" (especially ScriptRunner, which is so prohibitively expensive), I'm checking things in an automation that bounce it back so that we can set the conditionals how we want using JQL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Replying to my own question - thought of this when I flipped back to the workflow. Since it's an "either or", you can do something like have two different possible transitions between the two states, each with a conditional that checks for one of the two conditions. That way if either is set a transition is allowed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One possible way is, if you have Script runner installed you can set Behavior script for those fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks :) The requirement is with no extra plug-ins or add-ons.
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.