Comments
-
Hi Iro, As mentioned above it is not possible to achieve this requirement inside of Jira Cloud as the API's to achieve this do not exist inside of Jira Cloud. If you require to achieve this on Jira Server then you will need to create a post on here and tag this with Jira server so that someone familiar with Jira Server can…
-
Hi Hrinsta, The example above should work and you should be able to just change the field type and set null for both field types to clear a number field and a single select list field. Regards, Kristian
-
Hi Matt, Thank you for your response. I can confirm the best way to identify how fields are stored on an issue is to navigate to the Script Console page and then to click the 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 the issue…
-
Hi Joanna, Thank you for your response. I can confirm that ScriptRunner for Jira Cloud can only use the public rest API's which Atlassian provides in order to interact with Jira Cloud and perform actions inside of Jira Cloud. This means that if Atlassian does not provide any Rest API's to display this information on a…
-
Hi Matt, Thank you for your question. I can confirm in your script above that when you are gteting the custom fields that you are just returning the whole custom fields and not the properties within them which is why you see a whole URL. You will notice in the object that this returns that the fields have a value paramater…
-
Hi Matt, This is just a static type checking warning where the compiler does not understand the code as described here and will not stop the code from working. This means you should be able to save and run the code and it will work as expected. Regards, Kristian
-
Hi Matt, Thank you for your question. I can confirm that checkbox fields use a List data structure which means you must get all values and check if they match the value you want to have as the selected value in order to test this in a workflow post function condition. I can confirm I have created an example of how to do…
-
Hi Narendra, I can confirm that the error which you are recieveing is the one documented inside of the knowledge base article located here which explains that inside of ScriptRunenr for Jira Cloud you must run these queries on the Enhanced Search page. I hope this information helps. Regards, Kristian
-
Hi Sahrudi, I can confirm that it is possible to use validators with Transition screens as long as the fields you are validating are on the transition screen. Please note however it is only possible to show the error message below one field and to show them one at a time due to the way that the validators functionality is…
-
Hi Sahrudai, Thank you for your question. I can confirm that the ScriptRunner for Jira Cloud plugin provides workflow Validators 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…
-
Hi Jeff, Thank you for your response. I can confirm that the yellow warning you are seeing is just a static type checking warning as described here and these warnings are just where the compiler does not fully understand the code and these are not errors that will stop the code from running. This means that the code will…
-
Hi Jo, I can confirm you will need to log out what just the user property is in order to see what properties it has that can be logged out. Also, I can confirm the static type checking warnings are just warnings as described here where the compiler does not understand the code and these mean the script can still be run and…
-
Hi Joe, I can confirm that if you configured the listener to run on the User Created event then it would mean when a user is created that the code in this listener script would be run. Also, I can confirm that when you create the script listener that if you click the Show me link next to the text which says There are…
-
Hi Jao, I can confirm that ScriptRunner for Jira Cloud can be used to make API calls to either the Jira Cloud Rest APIs located here or external Rest API's. Also, I can confirm that Atlassian provides a Get User API to get user details and this would be the API to look to return user details from Jira Cloud. Also you can…
-
Hi Harsh, Thank you for your question. I can confirm that the reason that your code above will not work inside of ScriptRunner for Jira Cloud is due to the fact the code you have provided is for 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…
-
Hi Shawn, Thank you for confirming that my response helped to solve your requirement. Thanks, Kristian
-
Hi Shawn, Thank you for your question. I can confirm that ScriptRunner for Jira Cloud does not currently provide any functionality to see in one central place what configuration is used and below I have outlined what configuration items are provided by the plugin and how you could check to see where these are used. *…
-
Hi Son, I notice that you have marked this request as relating to ScriptRunner for Jira Cloud but I notice that your code is for ScriptRunner for Jira Server and will not work inside of Jira Cloud and this will not work as Atlassian only provides a rest API in Jira Cloud and does not provide a Java API in the cloud like…
-
Hi Callum, Thank you for your response. I can confirm that with ScriptRunner with Jira Cloud that it is possible ti write scripts which interact with external systems and you can see further information on how to do this in the Knowledge Base Article here which explains ways to understand how the external third party API…
-
Hi Stewie, I can confirm that there is no way to display a popup dialogue with ScriptRunner for Jira Cloud which you have indicated you are using, as Atlassian does not provide any Rest API's for displaying popup dialogues and ScriptRunner for Jira Cloud can only use the Rest API's which Atlassian provides. However, you…
-
Hi Sonhia, Thank you for your question. I can confirm that filters are automatically synchronized every x minutes depending on the value that is configured in the Filter Sync Interval period option on the ScriptRunner Settings page located at the URL of…
-
Hi Kim, Thank you for your question. I can confirm that the same built-in scripts which the server 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 within…
-
Hi John, Thank you for your question. I can confirm that it is not possible to export out the results of filters on the ScriptRunner Enhanced Search page as we do not provide this functionality currently. However, I can confirm that the way the Enhanced Search feature works is that when you create and save the filter on…
-
Hi John, I have checked and can confirm that although you cannot directly nest queries that as a workaround you can first to create a query to return the results from the enhanced search function which you want to nest and can save this as a filter with a unique name. You can then create a second query which calls this…
-
Hi John, I can confirm that ScriptRunner for Jira Cloud does not support nesting an enhanced search function that it provides inside of the subquery of another enhanced search function which means you will be unable to achieve doing this inside of Jira Cloud. Regards, Kristian
-
Hi Jawad, When using the slack example can you please confirm you have created a Slack API token as mentioned in the documentation and referenced this in the header for the postToSlack rest API call as this will be required to access the Slack API's. Also can you confirm that you have configured valid values in the…
-
Hi Jawad, Thank you for your response. Please note the KB article linked contains a link to the sample here which shows how to post a message to slack. Also please note ScriptRunner uses UniRest so your Rest API call will need to be in this structure and as mentioned in the KB article you will need to contact the vendor of…
-
Hi Jawad, Thank you for your question. I can confirm that that is possible to interact with external applications with ScriptRunner for Jira Cloud as long as the third party application has a Rest API which can be called from ScriptRunner for Jira Cloud. We have created a Knowledge base article located here which explains…
-
Fir Reference I have pasted the URLS to both the server and cloud support portals below. ScriptRunner for Jira Cloud Support Portal: https://productsupport.adaptavist.com/servicedesk/customer/portal/23 ScriptRunner for Jira Server/Data Center Support Portal:…
-
Hi Fernando, Thank you for your question. I can confirm that the same built-in scripts which the server 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…