A project would like to change field attributes based on the status of the issue. In one state they would like a field optional, another state they want it required, and even in another state they want the field "read only". Can this be achieved using "out of the box" configuration options?
Is there any way to get validator using REST API while changing status ?
You can make a field mandatory during a transition using a validator. It can't be dependent on the status (only in the transition to a status). So,
1. for optional use a transition screen including this field
2. for mandatory use a transition screen including this field and add a validator that this field is required
3. for read only remove the field from your edit screen. (since you have this field in the transition screens you can edit only during transitions)
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.