Comments
-
HI Tomas, Unfortunately, it is not possible to add a line of code to execute the update as another User as the Atlassian Rest API's do not permit this. Regards, Kristian
-
Hi Adrien, It would not be possible to built this field using *ScriptRunner for Jira Cloud* and I do not know if this would be possible in a custom plugin either. Regards, Kristian
-
Hi Adrien, Thankyou for your response. Can I please ask if you created your request through our customer portal located at https://productsupport.adaptavist.com/servicedesk/customer/portal/23 as I cannot see your request inside of our portal. Regards, Kristian
-
Hi Adrien, 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 like it can…
-
Hi Tim, Thank you for your question. I can confirm that by default ScriptRunner for Jira Cloud will require you to specify setting the field by its ID due to the fact the Rest API in Jira cloud is required to specify fields by their ID's and the name cannot be used as Jira Cloud does not have a Java API like the server…
-
Hi Tomas, Unfortunately, there is no workaround for this as the Rest API mandates that a user must have admin permissions, so for current users, you will only be able to execute the script if a user is an admin user. This a limitation of the API and is not something that ScriptRunner can work around. Regards, Kristian
-
Hi Tomas, Thank you for your question. I can confirm that the example code shared above will not work inside of 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…
-
Hi Gil, Thank you for your question. I can confirm that it is possible to search for issues which have a certain number of subtasks using the numberOfSubtasks() JQL aliased provided by ScriptRunner for Jira Cloud as described here. You can also search for subtasks which meet a specified condition with ScriptRunner for Jira…
-
Hi Tyler, I can confirm that it is not possible to programatically clear or set the values of Script Variables inside of Jira Cloud using ScriptRunner for Jira Cloud as Atlassian do not provide the API's to achieve this functionality. Script Variables are designed to store items which can be shared acrross scripts and can…
-
Hi Wade, Thank you for your question. In order to migrate your scripts from JIRA server to JIRA cloud then you should refer to the Migration guide inside of the ScriptRunner for JIRA cloud documentation located here as this page will help to outline the strategy that should be used to migrate scripts from the server…
-
Hi David, Thank you for your response. I can confirm that it is possible to create a Confluence Cloud page from Jira Cloud using the ScriptRunner for Cloud add on and that we have an example script which shows how to do this in the documentation page here. This example is a Script Console script but you will be able to…
-
Hi Chris, Thank you for your question. I can confirm that the same built-in scripts which the server version contains are currently not possible inside of ScriptRunner for Jira Cloud The reason for this is due to the fact there are some significant differences between ScriptRunner for Cloud vs Server based on restrictions…
-
HI Wai, Thank you for your response. I can confirm that it is not possible to restrict the visibility of issues using ScriptRunner for Jira Cloud as Atlassian do not provide the API's to do this inside of Jira Cloud. Regards, Kristian
-
Hi Michael, Thank you for your question. I can confirm that ScriptRunner for Jira Cloud is unable to provide a report inside of Tempo as we cannot change the way that Tempo works as Atlassian do not provide the API's to do this. I can confirm that Atlassian provides the Get Worklogs API's which returns all worklogs for a…
-
Hi Teresa, Thank you for your question. I can confirm that the template comments functionality is not available inside of Jira Cloud meaning that you configure template comments in Jira Cloud. The reason for this is due to the fact there are some significant differences between ScriptRunner for Cloud vs Server based on…
-
Hi Jon, Thank you for your question. I can confirm that by default ScriptRunner for Jira Cloud is configured to notify the administrators of a Jira instance when a script fails as well as the assignee and reporter as described in the documentation page for the plug-in's settings located here. In order to change who will…
-
Hi David, Thank you for your response. I can confirm that the approach that you have defined above will only work inside of ScriptRunner for Jira Server and will not work inside of ScriptRunner for Jira Cloud. The reason for this is due to the fact that the cloud version does not contain the same behaviors functionality as…
-
Hi Jessica, Thank you for your response. I would advise contacting the X Ray support team through their support portal located here to ask them to provide yourself with an example of using the API if the standard Jira API's do not meet your need. I can confirm that ScriptRunner for Jira Cloud supports interacting with…
-
Hi Jessica, Thank you for your question. I can confirm that you can link to issues together inside of Jira using the issueLink Rest API which Atlassian provide and can confirm that we have an example script located here which you can run on the script console and shows how you link two issues together. You will be able to…
-
Hi Drew, Thank you for your question. I can confirm that we have some example code for how to set the Fix Version field inside of a post function located here which you can refer to in order to create the post function that you require. In order to get the earliest unreleased versio inside of the project you will need to…
-
Hi Nico, Thank your question. I can confirm that the reason that you cannot notify yourself is due to a limitation with the notify rest API which specifies that users are not allowed to notify their own user using the rest API. As for your error on they syntax I would advise using the syntax shown in the documentation…
-
Hi Pooja, I can confirm that you have linked to above will not work inside of ScriptRunner for Jira Cloud is due to the fact the code you have provided is fro ScriptRunner for Jira Server and this will not work as Atlassian only provide a rest API in Jira Cloud and do not provide a Java API in the cloud like they do in…
-
Hi Dmitry, Can I please ask if you are using ScriptRunner for Jira Cloud as you have marked your question as Jira Cloud but have included code for Jira Server which is not valid inside of Jira Cloud. If you require assistance with this question relating to Jira server, you should remove the tag for Jira Cloud and add in…
-
Hi Wai, Thankyou for your question. I can confirm that the best approach to achieve your requirement would be to a Script Listener which is configured to fire on the *Comment Created* event. This issue would then need to update the parent issue by getting the comments from the linked issue using the Get Comments API and…
-
Hi Michael, Thank you for your question. I can confirm that Project Configurator is only compatible with migrating configuration or complete projects between Jira Server instances. This means that if you wish to migrate configuration or complete projects from a cloud instance then you would need to a copy of the cloud…
-
Hi Tomas, This is correct. You would need to create a dummy user with the email address that you wish to send to configured as that users email address as then you can specify that user in your script in order to send the notification to that email address. Regards, Kristian
-
Hi Tomas, I apologize but my wording was not clear in my previous response and I meant to say that you can only notify Jira users or groups and cannot notify a specific email address as the notify API from Atlassian which ScriptRunner Jira Cloud uses does not support this. This means you would need to specify a user with…
-
Hi Tomas, Thank you for your question. I can confirm that the reason that you cannot notify an external email address is due to a limitation with the notify rest API which specifies that users are not allowed to notify their own user using the rest API. I can confirm that as specified in the Rest API documentation page…
-
Hi Justin, I can confirm that to merge Jira Service Desk Projects between two instances that Project Configurator can achieve your requirements and you can see further details on how the plugin works inside of the documentation pages located here. I can also confirm that we have some demo videos on youtube channel located…
-
Hi Ashiwn, 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 infrastructure…