/
Validator for component lead
Validator for component lead
string [] comp = component; boolean pass = false; string errorMsg = "You can only have a single component assigned to this issue"; if(arraySize(comp) > 1) { return false, "error", errorMsg; } errorMsg = "Only the component lead can perform this action"; for(string c in comp) { if(getProjectComponentLead(project, c) == currentUser()) { pass = true; } } if(!pass) { return false, "error", errorMsg; }
See also
- Can you do a validation on a transition on component lead
- Forbidding users to create some issue types
- Hide fields from users not in a project role
- Limit Number of Characters in Text Field
- Lock an issue - a better variant (Live Fields)
- Locking Issues
- Making an issue read-only
- Require User to Log Work Before Transitioning Issue
- Restrict issue type availability by user
- Restrict workflow based on status of dependencies
- Disabling inline edits in Jira
Related content
Create a validator for a component lead
Create a validator for a component lead
More like this
Restrict issue type availability by user
Restrict issue type availability by user
More like this
Require an issue to have attachments
Require an issue to have attachments
More like this
Validators
Validators
More like this
Validator Templates
Validator Templates
More like this
How to Check if the Current User is a Project Lead Using JMWE Data Center
How to Check if the Current User is a Project Lead Using JMWE Data Center
More like this