Comments
-
Hi Andrew, Thank you for your question. I can confirm that the data import functionality provided by Project Configurator uses the built in Jira Data Import functionality meaning that in order to import a project the Project needs to be empty on that instance and its key needs to be unique. The reason for this is that Jira…
-
Hi Rosa, Can you please try going to the Application access page for me and try revoking access to each application for the ScriptRunner User as this should stop it counting towards your license count. Thanks Kristian
-
Hi Rosa, Thank you for your question. Unfortunately add on users cannot be removed from Jira cloud currently. However when an add on is unsubscribed to then the user is deactivated so will not count towards a license in your cloud instance. If this answer has solved your issue can you please accept it in order to mark this…
-
Hi Mike, Thank you for your question. I can confirm that you can run a wild card search for labels starting with AC by running the JQL search below inside the ScriptRunner enhanced search panel on Jira Cloud. issueFunction in issueFieldMatch("", "labels", "^AC") This will return all the labels that match as shown in the…
-
Hi Richard, Thank you for your question. I can confirm that ScriptRunner for Jira Cloud will be able to implement the calculated field based on story points that you require. In order to achieve this you should use the calculated field example located in the documentation here and to modify this example to meet your…
-
Hi Elizabeth, Can you please confirm if there is a Jira Core or Jira Software license also in the instance which has service desk installed. If a Jira Core or Jira Software license is installed and these are using are a paid for production license then this will stop the import working until a production license for…
-
Hi Sharron, Thank you for your question. ScriptRunner Script should still be able to send notifications to the script along as the script have a valid reporter set like they would do if the issue was configured inside of Jira. Can you please validate your incoming mail settings and make sure that users are being created if…
-
Hi Elizabeth, Thank you for your question. Can you please confirm if the Jira Core of Jira Software license for the Jira instance where you are running the import contains a production license and if you are using an evaluation license for Project Configurator. The plugin is restricted to only allow imports onto a…
-
Hi Debasruti, Thank you for your question. You are correct that to migrate a complete project between Jira Instances that the versions must be the same. If you are unable to upgrade one instance to make both versions the same version then we recommend you create an intermediary instance to use by following the steps below.…
-
Hi Kimmy, In order to do this you should look at using a script listener configured to run on the issue created and issue updated events. The script listener should then look to get the fields for the issue and check the labels on the issue using the rest API outlined here. If the label is found then you should look to add…
-
Hi Kirill, If this answer has managed to answer your question can you please mark it as accepted so that other users searching for a similar question can see that this has been marked as a correct answer. Kristian
-
Hi Kirill, Can you please refer to the example located here. I have just tested this example in the script console using the Update Issue example and have found that when I set the properties for the comment to be as per below that it posts the comment as a public comment rather than an internal comment. properties: […
-
Hi Sharron, If this answer has answered your question can you please mark it as accepted so that other users searching for a similar question can see that this has been marked as a correct answer. Kristian
-
Hi Brian, If this answer has answered your question can you please mark it as accepted so that other users searching for a similar question can see that this has been marked as a correct answer. Kristian
-
Hi Sean, If this answer has managed to resolve your issue can you please mark it as accepted so that other users searching for a similar question can see that this has been marked as a correct answer. Kristian
-
Hi Ovidu, My example above was a simple example of how to set an epic link. The script could be modified to get all epics for a project if required and if you look at other answers on Atlassian Community then you should be able to find an example of how to do this. Thanks Kristian
-
Hi Brian, Thank you for your question. Unfortunately in Jira Cloud there is no option in the rest API detailed here to allow custom field options to be created programmatically. As Atlassian do not provide this API then ScriptRunner for Jira Cloud is unable to fulfill this requirement as it can only access the Rest API's…
-
Hi Sean, Please refer to the documentation on the Enhanced Search feature provided by ScriptRunner cloud which is located here. You can then use either the epicsOf() function to find the newly created epics and once you have a filter which finds these you can save the enhanced search and share it with users. This filter…
-
Hi Sharron, Thank you for your question. I can confirm that it is currently not possible to set the resolution via the rest API's in Jira Cloud as Atlassian do not support this. However in the Atlassian ticket for this located here they provide some workarounds which outline how to use a separate Jira built in post…
-
Hi Ryan, Unfortunately the Approvers field is a locked field owned by the Jira Service Desk. Service desk fields need to be updated using the Jira Service Desk Cloud Rest API located here, however unfortunately there is no rest call provided to update the Approvers field which means that it cannot be set using ScriptRunner…
-
HI Eitan, Behaviours only happen on the create and edit screen. The fields would need to be available on both screens in order for the behaviour to work. I hope this helps. Kristian
-
Hi Eitan, In order to answer your questions above you should use the Add Field option in order to configure the behaviour on a particular custom field. You can find more information on how to configure Behaviours here. Also I have attached below a sample script along with its config that will allow you to make a custom…
-
Hi Vignesh, I have attached a sample Behaviours script that I have created on my local JIRA 7.1 instance which takes the value from a custom date picker picker field called DemoTimeField and checks if the value entered is less than 1 hour from the current date and time and if it is presents the user with an error and…
-
Hi Vilhjálmur, I can see you have raised a support request which the development team have responded back saying this is due to a known issue with Mysql and the Fast Track Transition post function. As this issue has been dealt with a support portal we can now consider this support query resolved. Many Thanks Kristian
-
HI Vilhjamular, As the issue is only happening sparadicly as you have mentioned in your previous comment and you are unable to replicate the issue locally, could I please ask you to raise a support request here with the logs and as much information as possible so that the Script Runner developers can look into this issue…
-
Hi Vilhjálmur, After researching this issue it appears that the error you are seeing is due to the fact that the issue has not been created correctly and cannot be transitioned due to this. I notice that you have other Scripted Post Functions on the create transition. Could i please ask that you remove these and try re…
-
Hi Mel, If you use something similar to the code below then it will set the value to 0 if the field is null. You can add multiple fields in by getting each field and adding an if block for each field to set it 0 if its null. def aval = getCustomFieldValue("A")def bval = getCustomFieldValue("B")// check both fields contain…
-
You would just need to check in the if statement for if value == null. You will not be able to add a null value to a number. What you would need to do is have a separate if statement for each field before the calculation which adds the values up and if it any field is null set its value to 0 so that it can be used in the…
-
Hi Mel,I am glad the solution works. Thank you for accepting the answer.Kristian
-
Hi Mel, I can confirm that if a value is null then it will not be able to be used in a calculation. You could use an if else statement to check if one of the values is null and only do the calculation if both fields contain values. An example of what this might look like using Nic's code above is below. // Get values from…