Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Field Validation on Edit screen using JMWE add-on

Pangeel Shubha April 7, 2019

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.

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
April 7, 2019

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. 

Pangeel Shubha April 9, 2019

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?

David Fischer
Community Champion
April 9, 2019

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. 

Pangeel Shubha April 9, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events