Comments
-
Hi Gencay, I can confirm in the cloud version of ScriptRunner that the closest thing you can do is to have a script listener which updates a Jira field as mentioned above and this field can be shown on the view issue screen. Unfortunately, this is the closest you will be able to get your requirement inside of Jira Cloud…
-
Hi Ricardo, I can confirm that we had a small issue with ScriptRunner for Jira Cloud yesterday where scritps were not running as expected which we documented on our Status Page located here. We now believe that this issue has been resolved but if you encounter any further issues then we would ask you to raise this through…
-
Hi Gencasysn, I can confirm that Scripted Fields are always run as the ScriptRunner Add on User as they are loaded and calculated when an issue is loaded. This means if you need to have a calculated field where the user who runs the script is the user who updates the issue that you will need to use a Script Listener and…
-
Hi Suresh, I can confirm that your error shows that the custom field with the ID of customfield_11911 is not on the edit screen and due to this the value cannot be cleared as the plugin can only clear values when the field exists on the edit screen. As the error says to make the script work for fields not on the edit…
-
Hi Suresh, This indicates you have not configured the script correctly on your instance to handle the fields which you are clearing as it either is not finding the field or you have not specified the correct syntax to clear that type of field. Can you please attach a screenshot showing how you have configured the script as…
-
Hi Suresh, Can I please ask when you run the script on a Service Desk Project are you updating the issue inside of Jira or via the service desk customer portal? If it is via the customer portal, then I can confirm that it is not possible to run a listener to clear values based on actions in the customer portal. If you are…
-
Hi UdJin, Thank you for sharing your completed solution. Could I please ask you to link this answer to your original post on the cloud question so that users who look there can see this question shows a solution for Jira Server. Regards, Kristian
-
Hi Udjin, Can you please confirm if you are using Jira Server or Data Center or Jira Cloud? The logs above indicate that you are using Jira Server or Data Center and this script will only work on Jira Cloud. If you need assistance with doing this on Jira Server or Data Center you should raise a new question and tag this as…
-
Hi Lee, I can confirm that with ScriptRunner for Jira Cloud you can achieve your requirement of filtering subtasks that have a parent Epic using the subtasksOf() and issuesInEpics() enhanced search functions as documented in the pages here and here which provides examples of how this query can be used. I hope this…
-
Hi Ryan, I can confirm that if you are using Jira Cloud that you can use then you can use the Clone Issue post function which ScriptRunner for Jira Cloud provides as documented here. This post funciton will allow you to clone the issue to another project and link it back during a workflow transition and when cloning the…
-
Hi James, I can confirm that ScriptRunner for Jira Cloud does not currently have the same functionality that the sever version has to connect to external databases due to the differences in the API's between the cloud and server versions and if this a feature you think would be useful to your organisation then I would ask…
-
Hi Stacy, Thank you for your response, I can confirm they can be used to search for where values match a certain query but the JQL does not support matching where a value such as an assignee matches the value of a field in another issue and you can only hardcode the values you require in your queries in Jira Cloud.…
-
Hi Stacy, Thank you for your question. I can confirm that ScriptRunner for Jira Cloud provides the issueInEpics() and epicsOf() enhanced search functions that you would be able to use to search for issues in an epic and these may be useful to achieve your requirement if you are using Jira Cloud. Regards, Kristian
-
Hi Morris, I can confirm that ScriptRunner for Jira Cloud does not provide the same portfolioChildrenOf() and portfolioParentOf() JQL functions that the server version provides in order out of the box in order to search for Portfolio issues as the API to provide this function does not exist in the Jira Cloud as it does in…
-
Hi Travis, Unfortunately in the cloud version of scriptRunner the only workaround is the one I have suggested and there is no way to filter what options a user sees currently like you can do in the Jira server version due to the fact we don't have the API's to do this in cloud-like we do on the server as explained above.…
-
Hi Aaron, I can confir that as Kian has said that the ScriptRunner for JIRA Cloud plugin is unable to perform any dynamic validation or to dynamically populate field values on issue like the server version can with the Behaviors feature. The reason we are unable to provide this functionality is due to the restricted…
-
Hi Martim. I can confirm that ScriptRunner for Jira Server/ Data Center provides the built in script named View Server Log Files which is documented here and when you run this script then you can specify a log file as well as how many lines you want to view from this and this will be displayed online inside of Jira. I hope…
-
Hi Travis, Thank you for your question. I can confirm that we currently do not offer the same Behaviours functionality inside of ScriptRunner for Jira Cloud but I can confirm we are currently looking at adding this feature and I would ask you to vote on the item for this in our public backlog located here if this is…
-
Hi Maurico, I don't have an example of how to achieve your requirement that I can share with yourself. I would you advise you raise a new question detailing what your requirement is in more detail along with tagging the answer as for Jira Server so that other users can see your question and provide suggestions on how they…
-
Hi John, Thank you for your question. I can confirm that if you are using ScriptRunner for Jira Cloud then we do not provide the aggregrateExpression() search method as this is currently only available in the Server version of ScriptRunner. As for the server version, I can confirm this output can only be displayed in the…
-
Hi Abhiram, Yes you are correct, you will need to install a plugin such as ScriptRunner or another plugin which provides advanced JQL searching in order to do advanced searching inside of Jira cloud. Regards, Kristian
-
Hi Jamshaid, If you are getting an error around imports then this means the code you are trying is from Jira Server and will not work in Jira Cloud as Jira Cloud only contains rest API's and not the Java API that the server version contains. You will see an example here which shows how to create a subtask in Jira cloud via…
-
Hi Abrhiram, Thank you for your question. I can confirm that in JIRA Cloud you can only use the issueFunction() JQL function provided by ScriptRunner on the Enhanced Search page as described in the documentation here. This is due to the way that Atlassian restrict how the JQL functions can interact with their…
-
Hi Matt, Thank you for your question. I can confirm that the Send notification for issue API which the Send notification post function provided by ScriptRunner for Jira Cloud uses only allows you to notify Users or groups inside of Jira as this is all Atlassian permit to be notifed by the API. However, if you have a group…
-
Hi Paul, I can confirm that the way published in the documentation is the best way to configure this and is the way we would recommend. I can also confirm that you can see details of how to configure the JVM settings for a Jira instance the Atlassian page located here which you may find useful. If you require further…
-
Hi Magnetic, Thank you for your question. I can confirm that with ScriptRunner with Jira Cloud that it is possible to write scripts which interact with external systems such as Piwik and Salesforce and you can see further information on how to do this in the Knowledge Base Article here which explains ways to understand how…
-
Hi Duje, I have just tested the URL and can confirm it works as expected. Unfortunately, I can not share the content of the snippet here and it can only be accessed using the URL linked above. I can, however, confirm that you can view examples for validators in our documentation site here. As for validating a specific…
-
Hi Paul, Thank you for your question. I can confirm that when running Jira Data Center that you need to ensure that you place all of your scrips inside of the shared-home/scripts directory as this is a shared Jira home directory which is shared across all nodes inside of the data centre instance. I can confirm that…
-
Hi Michah, I can confirm that currently that it is not possible to search in JQL for the values of Scripted Fields provided by ScriptRunner for Jira Cloud as this currently not a feature that we provide. We can, however, confirm that we do have this on our roadmap as a feature request here and I would ask you to vote on…
-
Hi Hrinsta, I can confirm I have updated the example linked above to also show how to clear number fields and single select list fields. Regards, Kristian