Comments
-
Hi Ricardo, Thank you for your question. I can confirm that it is not possible with ScriptRunner for Jira Cloud to set users as members of groups. The reason for this is that the Add User to Group which Atlassian provide as documented here is marked as Apps cannot access this REST resource. This means that ScriptRunner for…
-
Hi Mark, Thank you for confirming you got the script to work for a text field. I can confirm that the example provided is setting the field as a string and I do not believe that Atlassian allow you to retrieve the formatting of the comment as the API's do not allow this. You may wish to look at using a Groovy Multi Line…
-
Hi Mark, Can you please advise what type of field the Last Comment Field is? I can confirm that in our documentation site located here that we have lots of examples of how to set different fields and the example located here shows how to set a text field and you can change the summary field to your custom field if you wish…
-
Hi Mark, Thank you for your response. I have created some simple example code located here which when configured to run on the Issue Updated event in a Script Listener in ScriptRunner for Jira Cloud will get the text from the last comment off an the issue and save it to a variable. You will be able to use this as a…
-
Hi Geoff, I will feed this information back to our documentation team. Thanks, Kristian
-
Hi GeofL, Thank you for your response. I can confirm the documentation you have referenced above is for ScriptRunner for Jira Server and not for ScriptRunner for Jira Cloud. I can confirm you can see the documentation for ScriptRunner for Jira Cloud here. I can also confirm that the ScriptRunner for JIRA Cloud plugin is…
-
Hi Peter, Can I please confirm if any of the licenses in the test instance are a production license as if this is the case then the plugin will not let you import as you cannot import using an evaluation or developer license of PC when any of the Jira licenses are production licenses. If you are still encountering issues…
-
Hi Geofl, So that I can advise further on your question can I please ask are you using ScriptRunner for Jira Server/Data Center or ScriptRunner for Jira Cloud? Regards, Kristian
-
Hi Rajeev, Looking at your script I notice you are specifying the name of the field as Region2 but the API will require this field to be specified by its ID so can you specify by its custom field ID to see if this resolves the issue which you are seeing. Regards, Kristian
-
Hi Rajeev, Thank you for your response. Can I please confirm if you have tried running the script as the ScriptRunner Add On User to see if this resolves your issue as you must run the ScriptRunner Add On User when you specify the overrideScreenSecurity queryString paramater inside of your rest call. Also can I please ask…
-
Hi Rajeev, Can you please confirm that the Region field is of the type Select List (multiple choices) as this is the type of field that this example is designed to work for. Also can you please confirm that the Field contains two options called test and test2 configured for it which can be set manually on the issue as you…
-
Hi Dan, Thank you for your question. I can confirm that your code shown above will not work as you cannot define the log4j import statement as this is not valid in *ScriptRunner for Jira Cloud* as the logging comes bundled so you can just write your logging statements without defining the log4j import statement. I can also…
-
Hi Rajeev, I can confirm that it is possible to set fields automatically with ScriptRunner for Jira Cloud and that if you are getting an error that it means that the syntax of your rest call is invalid. I can confirm that as you have said the Region field is a multi select list field that the syntax to use to set a multi…
-
Hi Ramr, 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, hide or make fields required like the server version can with the Behaviors feature. Also I can confirm that the plugin cannot dynamically populate field values…
-
Hi Daryll, I can confirm that we have resolved your issue through the support ticket which you raised in our support portal. Regards, Kristian
-
Hi Amar, I can confirm that as long as the version of each database is one which Atlassian supports then Project Configurator will support this. I would advise checking the Atlassian supported platforms page to make sure the database versions you will be using are supported by Atlassian. Regards, Kristian
-
Hi Amar, I can confirm that Project Configurator is Operating System and Database agnostic and will support migrating between these versions as long as the versions used are ones that are supported by Atlassian for your version of Jira. I can confirm that to learn how project configurator works I would advise reading…
-
Hi Prabakar, I can confirm that the query provided above is for ScriptRunner for Jira Server and will not work with ScriptRunner for Jira Cloud due to the differences in the plugin which you can see in the documentation page located here. I can confirm that in ScriptRunner for Jira Cloud that hasLinks is a JQL keyword as…
-
Hi Rajeev, I notice from your screenshot that the Region Field does not have a value, can you please confirm if this is from after you have run the script to set the value? If this is the case from after you have set the value, then this shows that your logic is invalid as the value has not been set from your script and I…
-
Hi Aira, I am unable to advise on Jira Data Center and I would advise re-tagging your question to remove the cloud tags so that other members more experienced with how Jira Data centre works can assist yourself. Regards, Kristian
-
Hi Mara, Thank you for your question. I can confirm that is not possible for us to implement the addedAfterSprintStart() function inside of ScriptRunner for Jira Cloud currently due to the fact that Atlassian does not provide any Rest API's that can be used to check when issues have been added to a sprint after it has been…
-
Hi Aira, So that I can advise further on your question, can I please ask you to let me know details of what Post Function you are using which is provided by ScriptRunner for Jira Cloud, to create the linked issue and to send me a screenshot of how you have configured this. Once I have this information then I will be able…
-
Hi Rajeev, Thank you for your response. I can confirm that line 872 as shown in your screenshot appears to be a log statement and I believe the syntax of your log statement is invalid which is why it is logging out null. I would advise trying to save the value of the field to a variable in your script as a String and then…
-
Hi Rajeev, Looking at your screenshot I see the option you are trying to set is called nations_json[i]?.region and you have this in double-quotes which means you are telling the API to select an option with this name from the drop-down. To me, this looks invalid as I am guessing you have not configured an option called…
-
Hi Rajeev, I can confirm the code example I shared which is located here will set the values on a multi-select list field. I think you are misunderstanding the code as the add syntax is required to tell the rest the API to add one of the valid options available for the field to the selected options as it is a multi-select…
-
Hi Rajeev, I can confirm if those values are values which you can set manually on the screen, then you will be able to set them using the Rest API and using the example provided as an example to ensure you specify the values in the right format that the API call expects. As for another field type if it is any form of…
-
Hi Rajeev, Thank you for your response. You are correct the code snippet will only allow you to update with multi-select list options that users can choose from. This is a limitation of Jir itself as the API mandates that you can specify a valid value which has been configured for the field and will not allow you to set a…
-
Hi Rajeev, I can confirm I have just created the example code snippet located here and can confirm I have tested this and that when run on the script console this code snippet will populate a multi-select list field on an issue and will be a useful reference to show you how to refactor your script to set the multi-select…
-
Hi Rajeev, Thank you for your response. I notice in your script screenshot that you are trying to just pass the JSON as the structure for the filed and this will not be valid for the text field you are setting as the text field requires the value you set to be a String which means you will need to convert the value to a…
-
Hi Rajeev, I notice you are also asking the same question on the community answer at: https://community.atlassian.com/t5/Jira-Service-Desk-questions/How-to-get-and-set-custom-field-values-via-API/qaq-p/1282045?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_reply&utm_content=topic so I will respond to…