Comments
-
Hi Asha, Thank you for confirming this. Can you please confirm if overriding the screen security query paramater resolves the issue and allows the field to be set. If this does not resolve the issue could you please try setting the select list value using the syntax shown in the example code snippet located here. This…
-
Hi Asha, I can confirm that to set the value for a field which is not on screen that you will need to override the overrideScreenSecurity query paramater in the Rest call where you are setting the field and this will require the Script Listiner to be ran as the ScriptRunner Add On user. We have an example of how to set…
-
Hi Chris, Thank you for your response. Unfortanetly there is no other way with ScriptRunner to sum up all values for a field for every issue in a project as you would need to do this using JQL and ScriptRunner for Jira Cloud does not provide any JQL functions to achieve this requirement. Regards, Kristian
-
Hi Chris, I can confirm that it is not possible to sum up values in ScritpRunner for Jira Cloud currently using JQL as the aggregateExpression() JQL function is only available in the Server version of the add on. You can see all the JQL functions which the server version provides inside of the docuemntation page located…
-
Hi Angela, Thankyou for your question. I can confirm that unfortanetly it is not possible to dynamically show and hide fields on issue forms with ScriptRunner for Jira Cloud. The reason that we are unable to provide this functionality in Jira Cloud is due to the fact that this requires server side validation on issue…
-
Hi Alex, I can confirm that you must use the Enhanced Search page inside of Jira cloud in order to construct filters which use the JQL functions provided by ScriptRunner. However once you have constructed the filter that you require then save it as a filter which you can view on the standard Jira Filters page by following…
-
Hi Alex, I am glad that we were able to help resolve your issue. Could you please accept both answers in order to mark them both as correct for users searching for the same question. Regards, Kristian
-
Hi Alex, Are you trying to update the 'Flagged' field which is provided by JIra Software out of the box? If this is the case I have an example script console script which shows how to do this which is located here. You will be able to use this script to see how to set the flagged field and to see an example of the syntax…
-
Hi Mordechai, Thank you for your question. I can confirm that on Jira Cloud it is not possible to modify the From user meaning that the from user will be the user who ran the script. The reason for this that Jira Cloud does not provide any API to switch the user in the script which means that if the iniating user does not…
-
Hi Alex, Thankyou for confirming that your issue has been resolved. I can confirm that Static Type Checking errors are just warnings where the compiler does not understand the code as described here and that scripts will still run with these type checking warnings. Kristian
-
Hi Alex, Thank you for your question. I can confirm that to get the sprint value off an issue that you need to use the Jira Software API's rather than the standard get issue api as this just stores the sprint details as text. I have created a sample script located here which you can run in the script Console in order to…
-
Hi Office of IT, I can confirm that when using the built in Modify Issue post function provided by ScriptRunner for Jira Cloud that we provide some examples of how to set different types of custom fields located on the Examples line below the Additional Code box. In order to set a select list type of field then you can…
-
Hi Jorg, 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…
-
Hi Michael, Can you please validate that the event user is valid in the source instance and if it is not can you please update this in the source instance before taking a new export to import from. If you are still having issues can you please provide us with the atlassian-jira.log file and the import traces which are…
-
Hi Michael, Thank you for your question. I have reviewed the stack trace provided and can confirm that it indicates that it is failing to set the default user for the automation rules inside of the VYTSUP project. In order to work around this errror you should check what the default event user is in the project in the…
-
You can just change the return line to be 'return userResult.body.name' to get just the name element out of the body.
-
Hi Constance, Thank you for your question. Further to my previous reply I believe that if you made the following changes below to your script then it should work. * Change the line of '.asObject(Map)' to be '.asObject(List)' * Change the line of 'return userResult.body.fields' to be 'return userResult.body' If this…
-
Hi Constance, Thank you for your question. I can confirm that the Create user rest API call which is documented inside of the API documentation here states that this rest call is not permitted to be made from APP's meaning that ScriptRunner for Jira Cloud will be unable to execute this rest call. This means that currently…
-
Hi Constance, Thank you for your question. I can confirm that to search for a user you need to use the Get user rest API described here rather than the search api. I have created an example script located here which can be ran from the script console to return a user based on a specified username and you can modify this…
-
Hi Ventak, Normally it would be directly below the answer but I cannot see what options below the answer form your screenshot. Kristian
-
Hi Venkat, Thankyou for confirming that you managed to create a working solution. Could you please mark the answer as accepted so that other users searching for searching a similar question can see that this script contains a correct answer which they can use. Regards, Kristian
-
Hi Venkat, Thank you for your question. I can confirm that the way that Jira Cloud works is different to Jira server as there is only a rest API for the cloud version and no Java API as described in the documentation here. In order to achieve this requirement you would need to create a script which performs a JQL search in…
-
Hi Philippe, Unfortunately it is not currently possible to have a global variable which can be wrote to and shared between scripts. One way you work around this is to have an specific issue which has a field on it to store the value for the variable and then to read the value from and write the value to that issue each…
-
Hi Phillipe, Thank you for your question. I can confirm that script variables are designed to store values which can be injected to scripts and used in scripts as described here but that you cannot change the value of a script value from a script due to the security restrictions which Atlassian place on Jira Cloud. This…
-
Hi @Dominic Price, My question is for an organisation that is just starting to use the Atlassian suite of tools for there agile practices, what would be the top 5 plugins that you recomend they look at using and why? Thanks Kristian
-
Hi Jim, Thank you for your question. As Andrew from at Atlassian has said the licence tier for the Project Configurator plugin must match the licence tier for your Jira Add on. As for Project Configurator we support using an evaluation licence for testing migrations on servers which are configured with a Jira Developer…
-
Hi Sanan, Thank you for your response. When you generated the export can you please verify if you set the Filtering custom fields drop down to have the value of All or Only those used in Projects. Also, can you confirm if in the approach you used if you used Project Configurator to import the issue data or if you used the…
-
Hi Erik, Have you looked at creating a ScriptRunner script plugin as described here in order to see if this will meet your requirements. Regards, Kristian
-
Hi Sanam, The error indicates that is related to the swimlanes for the board as it occurs when it is trying to create the quickfilters which are used to define the swimlanes. The error is saying that one quick filter is searching for the fix version of TU example 1.175.0 which does not exist. To work around this error you…
-
Hi Suzanne, Thank you for your question. In order to achieve your requirments you would first of all need to delete all projects and their associated configuration from your staging instance manually so that you are left with an empty instance which contains no projects and configuration. Project Configurator does not…