Comments
-
Hi Robert, Thank you for your question. I can confirm that with ScriptRunner for Jira Server contains the Escalation Services functionality as described here which allows you to run a JQL query to return issues periodically based on the Cron expression specified and then to perform an action on the issues returned. Using…
-
Hi Yuri, Thank you for your question. I can confirm that the best way to achieve your requirement would be to get the value from the created field as you have done and to save this value into a date variable inside of your script. I can confirm that you would then be able to write some logic inside of your code to extract…
-
Hi Vikrant, If the script is working for one project and not another project then this indicates that either the configuration for the behavior is invalid or that an error occurred. In order to help yourself to troubleshoot the issue, I would advise that you look at the following items below. 1. Check the mapping for the…
-
Hi Fahim, Thank you for your question. I can confirm that out of the box Jira Cloud contains the OpenSprints() function to search for issues inside of open sprints but it does not contain any out of the box functions to search for tasks with at least 1 sub task. It contains the Parent field which can be used to search for…
-
Hi Milena, Thank you for your response. I have created a code sample located here which can be run on the Script Console inside of ScriptRunner for Jira Cloud to copy the value from a single line text field to a comment. This script will provide an example for ScriptRunner for Jira Cloud which you can take and modify to…
-
Hi Karthik, Thank you for your question. I can confirm the link provided by Elifcan relates to the ScriptRunner for Jira Server documentation and not to ScriptRunner for Jira Cloud. However, I can confirm that there are two ways to achieve you requirement with ScriptRunner for Jira Cloud and the first one is to use an…
-
Hi Mark, Thank you for your question. I can confirm that it is not possibly to dynamically set the SLA's provided by Jira Service Desk based on the value of a date field with ScriptRunner for Jira Cloud. The reason for this is that Atlassian do not provide a Rest API to achieve this functionality inside of the Jira Service…
-
Hi Brian, Thank you for your question. I can confirm that the Script Variables feature is a feature which is currently only available inside of ScriptRunner for Jira Cloud and that this feature does not exist in any of the ScriptRunner for Server products currently. I myself am not familiar with myself with ScriptRunner…
-
Hi Sayan, My example on this post is only for Jira Cloud and so will not work with Jira Server. Regards, Kristian
-
Hi Cgadade, I can confirm that validators inside of ScriptRunner for Jira Cloud are defined using the Jira Expression Framework as documented in the Atlassian API documentation page located here or in the documentation page located here which explains how to add in a new validator to your workflow. We can confirm that when…
-
Hi Cgade, This is the same question that you raised on the question located here and I have answered your question on this post to not duplicate information. Regards, Kristian
-
Hi Pawel, Thank you for your question. I can confirm that the best way to see what properties fields on an issue contain that can be set is by navigating to the Script Console and by clicking on the Get Issue Fields link located inside of the Examples section. Using this script you will be able to return the JSON structure…
-
Hi Cedric, Thank you for your question. I can confirm that the Get all users default Rest API which you are calling in your script as documented here is marked as Apps cannot access this REST resource. This means that ScriptRunner for Jira Cloud is unable to call it and is why you are getting forbidden response when you…
-
Hi Norman, Thank you for your question. I can confirm that it is not possible to get the SMTP details from Jira Cloud and to send an SMTP email with ScriptRunner for Jira Cloud. The reason for this is that Atlassian does not provide a rest API to access the SMTP details and that ScriptRunner for Jira Cloud can only use the…
-
Hi Lewis, I can confirm we do not have any plans to do this and this is due to the fact Atlassian do not provide any API's to access the parent link field which means ScriptRunner could not implement this workaround. Regards, Kristian
-
Hi Lewis, I can confirm that unfortunately scriptRunner for Jira Cloud does not provide any JQL Functions to search for portfolio links as Atlassian does not provide the API's for this and this means that if the does not allow you to create the search you require then it will not be possible to search the hierarchy you…
-
Hi Zack, I can confirm that the ScriptRunner for Jira Cloud plugin is only able to use the public rest api's which Atlassian provide and mark as allowed to be used by App's in order to extract data. I cannot comment on the Greenhopper API as I do not know about this but can confirm that Atlassian provide the Jira Software…
-
Hi Johnson, Thank you for your response. I can confirm that is not possible to dynamically populate field values with ScriptRunner for Jira Cloud like you 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…
-
Hi Rasika, I believe that if you take a whole instance backup using Atlassians complete project export tool that this would back up the Script Listeners as the scripts for these are stored encrypted inside of Jira which means that they should be backed up with there encrypted contents. However, I would advise you to…
-
Hi Philip, Thank. you for your question. I can confirm that the easiest way to see how to get values from fields is to navigate to the Script Console and to click on the text which says Get Issue Fields link in the Examples section below the code box. This will then populate the code box with a script where you can specify…
-
Hi Nick, Thank you for your response. I cannot say why the properties are not set during the create transition as this is an Atlassian issue and I would advise you speak to them about this. I can however advise that for post functions on the create transition that it is always best to order these below the post function…
-
Hi Nick, Thank you for your question. I can confirm that unfortunately it is not possible to prevent users from clicking the + icon inside of Jira Cloud to create an issue with ScriptRunner for Jira Cloud. The reason for this is that the Atlassian Rest API documentation located here does not provide any methods for…
-
Hi Thomas, Thank you for your question. I can confirm that you cannot import external libraries with ScriptRunner for Jira Cloud as we do not support this and you can only import the standard JAVA 8 SE classes and the libraries described in the documentation page located here. I can however confirm that it is possible to…
-
Hi Paul, I can confirm that it is not possible to achieve your requirement with ScriptRunner for Jira Cloud. Regards, Kristian
-
Hi Paul, 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, show 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…
-
Hi I can confirm the answer given by Suhas will not work with ScriptRunner for Jira Cloud as behaviors are only exist inside of ScriptRunner for Jira Server and do not exist inside of ScriptRunner for Jira Cloud as described here. I can confirm that the ScriptRunner for Jira Cloud plugin provides workflow Validators using…
-
Hi Oksana, I can confirm that unfortunately it is not possible to nest the currentUser() JQL function in the parentsOf() JQL function provided by ScriptRunner for Jira Cloud. The reason for this is when you define the Enhanced Search that it searches as the last user who ran the search and then synchronizes the results…
-
Hi Michael_S, Thank you for your question. I can confirm that you cannot import external libraries with ScriptRunner for Jira Cloud as we do not support this and you can only import the standard JAVA 8 SE classes and the libraries described in the documentation page located here. I can however confirm that it is possible…
-
Hi Mark, I meant if you place the no format block in your comment and then put the bullets inside this in the comment that it will return the markup for the comment. This means the custom field would then show the bulleted list similar to below where it uses a * symbol to indicate the bullet point. * a * bulleted * list…
-
Hi Mark, I have just tested your code and can confirm that the get comments API does not appear to support getting the formatting for comments which have complex formatting in them such as bullet points etc. However, I noticed as a workaround if you place the formatting in a noformat block using the syntax which you can…