The "Component" field is a multi-valued field but I would like to restrict it to a single value for one project.I have added a validator on "Create" transition using JMWE - Field has single value Validator.
But although the value is restricted to single input on creation, user is able to add multiple components on the Issue view, Edit screen.
Is there any solution to restrict this using JMWE. Would like to use the available add-on and not buy any new add-ons.
Any suggestion would help. Thanks.
Unfortunately not, because Jira doesn't treat editing an issue as a transition.
What you can do, although admittedly not ideal, is to replace the Edit action (and inline editing) with a global auto-transition. This way, you can use validators to enforce validation during editing, and even run post-functions.
Thanks David for your quick reply.
I was able to add a transition for the Edit action and then using validators could achieve the result. Although, I am unsure how to transition for inline edits. Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you remove the edit permission from your users (so they can't use the Edit action and can only use the Edit transition), it will also disable inline editing for them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I am aware of that option. But I find inline editing so convenient. So I was wondering if there was a workaround. Maybe I will read about about issueUpdated events for future reference. For now, this works fine for me. Thanks.
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.