I have added a field with Yes and No options and need detailed notes when Yes option is selected.
Can i make Notes field required when Yes is selected for the other field?
Hi @rupa_srivastava .
You can't do this with a standart Jira functional. We've used Extension for Jira Cloud addon for this purpose https://marketplace.atlassian.com/apps/1212161/extension-for-jira-service-desk?hosting=cloud&tab=overview
Hey @rupa_srivastava
I don't think what you're asking for is possible without an add-on, but one way you could approach this is instead of having the Yes/No field option on the transition screen, you can make 2 transitions, one Yes and one No transition, then on the Yes transition make that Notes field required.
Another options is to just make the notes field always required, and have instructions along the lines of "If no, then put N/A in the notes field"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
on Jira Server we are using Dynamic Forms for such purposes. But unfortunately it is not available for Jira Cloud.
It is also possible by adding some frontend JavaScript. I did that some time ago with Script Fragments from Scriptrunner. As far as I know this is also available in Jira Cloud. But I am not sure if that works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupa,
Thank you for question.
I can confirm that it is not possible to achieve your requirement of displaying a notes field when the Yes value is selected in another custom field with ScriptRunner for Jira Cloud.
The reason for this is due to the fact that the plugin is unable to perform any dynamic validation on issue forms to link or hide fields like the server version can with the Behaviors feature.
Also I can confirm that the plugin cannot dynamically populate field values like it can in the server version can with the Behaviors feature.
The reason we are unable to provide this functionality is due to the restricted functionality and API's which Atlassian provide inside JIRA Cloud, due to the fact that Atlassian only provide a Rest API in Jira Cloud and not the same Java API that the server version contains.
You can see more detailed information on the differences between ScriptRunner for JIRA Cloud and ScriptRunner for JIRA Server inside of the documentation page located here.
Also, I can confirm that it is not possible to achieve the requirement using Script Fragments inside of Jira Cloud as it is not permitted to run javaScript on the Jira pages inside of Jira Cloud like you can do in Jira Server as atlassian do not permit javaScript to be run inside of Jira Cloud.
I hope this information helps.
Regards,
Kristian
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.