Comments
-
Hi Derek, Thank you for your question. I can confirm that currently in ScriptRunner for Jira Cloud tht validators can only be run as the current user. The reason for this is that they use the Jira expression framework that Atlassian provides for this feature and do not interact with the rest API like other scripts. If this…
-
Hi Gregory, I can confirm that I have updated the snippet linked above so that it clears checkbox fields and the sprint field now. Please note in Jira the sprint field is treated as a custom field so the script gets this on line 27 and gets the checkbox field on line 26 where you must specify the name of your checkbox…
-
Hi Ben, I can confirm that with ScriptRunner for Jira Cloud that you can make a call to the Create Project rest API whcih Atlassian provide and is documented here in order to create a project. I can confirm that we have an example of how this API works which is located here and you will be able to run this example on yhe…
-
Hi AtlassianAdmin, I can confirm that you are correct that Jira cloud does not have the same behaviours feature currently that the server version has and so this means that your only way to achieve this requirement is with a workflow validator. Workflow Validators use the Jira Expression Framework from Atlassian and I can…
-
Hi Pasminkaur, I can confirm that in order to help resolve the timeout issue you are having then I would advise you to raise a request with our support team located here. They will then be able to advise how your script can be modified and may be able to look to increase the timeout limit for your instance as described in…
-
Hi Aaron, Unfortunately in the cloud for apps, it is not available and this is a limitation imposed by Atlassian so there is no way to work around this. Regards, Kristian
-
Hi Victoria, I can confirm that we have the example located here which shows in lines 39 to 56 an example of how to set a group picker field. I have tested this example and confirm this works and sets the field as expected when the syntax used in this example is used. The way this works is by specifying an array in the…
-
Hi Ewan, Further to trudy's answer, I can confirm that the docs linked to are for the old scriptRunner documentation site and you can see the latest docs at the URL below. * https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-jql-keywords-functions/enhanced-search-included-functions/agile-functions Also, I can…
-
Hi Andrey, Thank you for your question. I can confrim that ScriptRunner for Jira Cloud does not provide any API's itself but instead only interacts with Jira Cloud through the rest API's that Atlassian provides and I have checked and the API's below may allow you to retrieve the data you are after. *…
-
Further to Nics answer I can confirm we have an open feature request for behaviours locted here and you can follow this to see when this feature will be released in future.
-
Hi Peter, I do not have an exact query to hand but I would advise raising a support request with our support team located here who will be able to assist you to create the query that you require. Regards, Kristian
-
Hi Jan, I can confirm that in ScriptRunner for Jira Cloud that the parentsOf and subTasksOf functions can be used to search for the information you require and could be used to create a query which would meet your needs. Regards, Kristian
-
Hi dD, I can confirm that ScriptRunner for Jira Cloud is different to ScriptRunner Jira Server and does not have all the same features due to the fact that Atlassian only provides a rest API in Jira Cloud and this does not provide all of the API's that Jira server has in its Java API. As the API's Atlassian provide are…
-
Hi Sabina, Thank you for your question. I can confirm that inside of Jira Cloud that it is not possible to hide UI Elements with ScriptRunner for Jira Cloud like you can do with the server version as the cloud version does not have the Hide UI Element built-in script like the server version does, due to the fact, the API's…
-
Hi Josep, I can confirm we have some example snippets for validators located here and the example on line 55 shows an example of how to validate when a checkbox field has a certain valiue set in it and this will help you to create the validator that you require. I hope this information helps. Regards, Kristian
-
Hi Joris, I can confirm that as Radek has said that it is not possible to create a multi level cascading select list field with ScriptRunner due to the fact that Atlassian do not provide any custom field types out of the box to do this and ScriptRunner can only use the custom field types which Atlassian provides. I hope…
-
Hi Heather, Thank you for your response. I can confirm that inside of Jira Cloud that it is not possible to hide UI Elements with ScriptRunner for Jira Cloud like you can do with the server version as the cloud version does not have the Hide UI Element built-in script like the server version does, due to the fact, the…
-
Hi Aaron, I can confirm that unfortantetly inside of Jira Cloud that it is not possible to achieve your requirement using ScriptRunner for Jira Cloud due to the fact that the rest API for adding users to a group which Atlassian provide is marked as Connect apps cannot access this REST resource and this means that…
-
Hi Frederiuqe, I can confirm that if you configure an Alias for the Scripted field in Jira cloud when you configure it then you can search for this field however currently it is not possible to display the field as a column in the results returned on the Enhanced Search screen as mentioned in the documentation page located…
-
Hi Pritesh, Thank you for your response. This post here is around Jira Cloud so I would advise you to post a new answer tagged as Jira Data Center so someone familiar with ScriptRunner for Jira Data Center can advise on this. In the meantime, I noticed the script Libray example located here provides an example of making…
-
Hi Pritesh, If you are using ScriptRunner for Jira Cloud then you do not use any imports as ScriptRunner for Jira Cloud comes bundled with UniRest as mentioned in the documentation page located here. Kind Regards, Kristian
-
Hi Jason, I can confirm that it is not possible to directly insert an HTML page at the top of the Create Issue Screen. However, using the Behaviours feature of ScriptRunner for Jira Server / Data Center then it would be possible to write some logic to dynamically add some content such as some HTML Below a field such as the…
-
Hi Jonathon, I have included the same response below that we have given on your support ticket that you raised for reference so that other users can see this. I can confirm that it is possible to write scripts that would interact with an external application such as XRay for Jira Cloud, as long as the application contains…
-
Hi Kathy, I can confirm the standard Jira filter is synchronised to be kept up to date with the results of the enhanced search filter every X minutes depending on the time period configured on the settings page. You can see more details of how this works inside the documentation page located here. Regards, Kristian
-
Hi Daniel, Thank you for confirming you managed, to resolve the issue. If the answer here has been helpful can you please accept this so that other users can see this as a useful answer when they search for the same questions. Regards, Kristian
-
Hi Daniel, You would need to define the body as 4 separate Arrays using the structure shown above as this the structure the API requires and if you provide this then it will set all 4 users in the field. I do not have any sample code to show how to do this but as I have shown the required structure you will be able to use…
-
Hi Da, Thank you for your response. You would need to use the put entry to add entries to the Array as mentioned in the documentation page located here. Unfortunately, it is not possible to build up the list as you want to do due to the fact that you would have multiple entries with the same key which Groovy will not…
-
Hi Richard, I can confirm that inside of ScriptRunner for Jira Cloud that you must write your filter on the Enhanced Search page. However, I can confirm that you can share this filter and this will then create a standard Jira filter with the same name where the issue keys returned by this filter are synchronised to and you…
-
Hi Ying, If you are encountering issues I would advise increasing the timeout limit to a higher value to see if this resolves the issue and if the issue is caused by to many filters being synchronised inside of your instance? Otherwise, if this does not resolve the issue, can you please raise a support request in our…
-
Hi Melanie, I can confirm that in Jira Cloud that you can only run enhanced search functions on the ScriptRunner Enhanced Search Page and I can confirm we have a KB article located here which explains about this more. Also I can confirm when using these features in Cloud you will need to make sure that the JQL keywords…