Team,
We have a fields called Notify with values Yes and No and Whom to Notify(User picker)
When i select Yes then only i can enter whom to Notify field. otherwise i should not enter value there.
i know we can do this through Behaviors, but I'm not good in Scripting.
if anyone have Script for this, please send i will made changes according to requirement.
Hi Chinnamuthevisai,
You can achieve this requirement using the Behaviours feature of ScriptRunner for Jira Cloud.
We have an example script here that shows how to make fields required when a value is selected in a select list field.
You will be able to modify this to make the field read-only always and only editable when the value is selected in your Notify field.
Regards,
Kristian
Hi Christian,
Thanks for the code.
can you help me here?
I have two fields called Acceptance criteria and story acceptance criteria. both are multi line Text fields.
i want to try in sandbox that when acceptance criteria is Must have value in text then story acceptance criteria should be required. i modified the code as per that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try changing the field type from com.atlassian.jira.plugin.system.customfieldtypes:Paragraph to com.atlassian.jira.plugin.system.customfieldtypes:textarea to see if that resolves the issue.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still same issue.
I'm able to create issue when acceptance criteria field value is Must have and story acceptance criteria is not becoming required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chinnamuthevisai,
To get help debugging this script further, I would advise you to create a support ticket here for our support team.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristian,
i created a support request already
https://the-adaptavist-group-support.atlassian.net/servicedesk/customer/portal/27/SRJCLSUP-9301
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.