Hi,
Need to validate for the below scenarios
image2017-3-1 12:21:7.png
When I select "Feature Note" value from Documentation (multiple choice field) and Feature Note Developer (user picker field) is null, then I need to show Feature Note Developer is required validation message.
When I select other than Feature Note value Feature Note Developer is not required. I mean it should proceed transtion.
I tried some possible ways but it didnt work.
Any help would be apprecited.
Thanks
It should be like this:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.customfields.option.Option import com.atlassian.jira.issue.fields.CustomField Issue issue CustomField documentation = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Documentation") for(Option option: ((List<Option>) issue?.getCustomFieldValue(documentation))){ if(option.getValue().equals("Feature Note")){ CustomField developer = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Feature Note Developer") return issue.getCustomFieldValue(developer) != null } } return true
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.