Greetings,
I am using JIRA Software (cloud) and for one of our processes we need certain automation on the edit screen of the issue.
Fields which would need automation:
Scenario:
Problem:
Please let me know if this is something that can be achieved on cloud JIRA.
Thank you in advance.
Regards,
Pooja
Hi Pooja,
Thank you for your question.
I can confirm that the ScriptRunner for JIRA Cloud 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 or options 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 provides 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.
This means that unfortunately that your requirement of dynamically populating the options of the f2 field and then making the f3 visible once all options are selected cannot be achieved with ScriptRunner for Jira Cloud due to the reasons explained above.
Regards,
Kristian
Hello @Kristian Walker _Adaptavist_
Well that's sad :(
Thank you so much for your quick response.
Thanks & Regards,
Pooja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can always use the REST API for Jira and connect it to a webhook to start the automation.
We (@kaholo.io) are doing also doing automations via REST and you are welcome to have a look at our Open Source plugins :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pooja
There might be a hack-solution with Scriptrunner.
I'm not familiar with the cloud version, but if you have access to script fragments, you can inject javascript and css to your issue screen, meaning you can practically do anything on your GUI (client-side).
In this post, I have helped someone hide the "assign to me" link based on some data-conditions.
Maybe it helps, but then again... it IS a hack ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
... ah, sorry, it applies to the issue screen and not the edit screen, for which you are looking for a solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leonard,
Thank you for your suggestion.
I can confirm that the linked post above will only work on Jira Server as Jira Cloud does permit injecting JavaScript as Atlassian restricts this in Jira Cloud.
This means that Script Fragments are limited in ScriptRunner for Jira Cloud and in Jira Cloud work in their own Iframe and are not permitted to access fields or values on an issue.
This, unfortunately, means that as per my previous response there is no way to dynamically hide or modify fields in Jira Cloud with ScriptRunner for Jira Cloud.
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 Pooja - you might try Automation For Jira. It will not fire an action (like updating F2) until F1 is actually saved, not just updated as you click a box. But that might get you what you need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @John Funk ,
The thing is we have already purchased JSU, Script runner and other bigger plugins and doesn't look like we will be opting for new plugins this soon.
Is it not something that can be achieved through script runner plugin?
It would be a great help if it gets resolved by script runner itself (although I will checkout this plugin for my reference).
Thanks & Regards,
Pooja
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.