Hello there,
I need to do (if possible) a specific requirement in my JIRA application.
When i close an issue i get a specific screen to set a Resolution value. The screen is displayed threw a transition in my workflow.
I would like to display CustomField only when i pick a specific resolution value.
I do it pretty well with the AddOn Dynamic Form for other CustomField.
When i pick a value in a selectlist a specific custom is displayed. process discib below:
Step 1:
Step 2:
My question, is it possible to reach my needs with the JIRA standard field Resolution?
- when i select "rejected" the CustomField "Comment your choice" is show up.
- When i select "closed" the CustomField "Comment your choice" is not even displayed in my transition screen.
I hope i am understandable :)
Regards,
Olivier
Hi Olivier,
in order to do that you need to use a custom script. A good solution is Script Runner for JIRA (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/cloud/overview), in particular you could define a behaviour that, based on resolution selected, hide or not a specific field within your screen.
I used this approach to implement similar request for many customers and it worked like a charm.
As alternative, you should embed javascript custom code on a field description / banner https://confluence.atlassian.com/jira/fields-allowing-custom-html-or-javascript-224401453.html?_ga=2.27323582.388927580.1522049453-868929400.1503321899 .
Hope this helps,
Fabio
Hello Fabio,
Thanks for your answer !
I actually used ScriptRunner in my JIRA project (i.e it shouldn't be a probleme to use it)
But i am affraid that i miss something with my JIRA knowledge.
When you said " [...] you could define a behaviour [...]", where excactly i will put the script ? In every event in my Workflow transition step, no one match with my needs.
Can you please highlight a little your words?
Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olivier,
using script runner for JIRA, on add-on section you will find Behaviour
Enter a new behaviour and map it with your project/issue type. Afetr doing that you can add a specific behaviour to your fields using the following documentation https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
Ciao,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.