Comments
-
Hi Neil, Thank you for your response. I can confirm that it is possible to set the value for a field that is not on the screen by setting an overrideScreenSecurity query string parameter and I can confirm that we have an example of how to do this in the documentation located here. Please note that in order to use this you…
-
Hi Neil, Thank you for your question. I can confirm that we have examples of setting the value of lots of different custom field types on an issue inside of the documentation pages located here, and that you will be able to use to these examples as a guide to show how you should get the custom field in your script and how…
-
HI Matthias, Thank you for your response. I can confirm that currently only standard Jira projects support Jira post functions and that next gen prokects do not support these at this time. Regards, Kristian
-
Hi Barry, Thank you for your question. I can that in order to add a post function you should navigate to the project settings for the project which you wish to add the post function to which is located at the URL of <JiraBaseUrl>/secure/project/EditProject!default.jspa?pid=IdOfProjectHere. Once on the project settings…
-
Hi Andres, Thank you for your question. I can confirm that the reason that you can notify yourself via the script is due to a limitation with the notify rest API which specifies that users are not allowed to notify their own user using the rest API. We have more information on this inside of our documentation page located…
-
Hi Giles, Thank you for your response. I would advise removing the Jira Cloud tag and tagging your question with the tag of com.onresolve.jira.groovy.groovyrunner so that users using the Server version can advise on how to achieve your requirement. I would suggest that you try setting the user to be an ApplicationUser if…
-
Hi Frédérique, I can confirm thatto run a JQL query inside of your script you need to use the Search Rest API and I can confirm we have an example of how to do this inside the documentation in the page located here. Regards, Kristian
-
Hi Giles, Thank you for your question. Can I please ask if you are using Jira Cloud or Jira Server as the code you have provided is not valid inside of Jira Cloud. This means that it will not work inside of Jira Cloud, due to the fact the code you have provided is fro ScriptRunner for Jira Server. The reason for this that…
-
Hi Frédérique, Thank you for your question. I can confirm that we have an example script located here which shows how you can create an issue and link back to it on the create transition in the workflow as well as an example of linking two issues together here I can confirm that we also have an example of how to extract…
-
Hi Natasha, Thank you for your question. I can confirm that ScriptRunner for Jira Cloud does not provide the same portfolioChildrenOf() and portfolioParentOf() JQL functions that the server version provides in order out of the box in order to search for Portfolio issues as the API to provide this function does not exist in…
-
Hi Abhishree, Thank you for your question. I can confirm that it is not possible to restrict an issue from being transitioned until its linked issue is closed in Jira Cloud. The reason for this is that that Atlassian only provide a rest API in Jira Cloud and do not provide a Java API in the cloud like they do in Jira…
-
Hi Eduard, Thank you for your question above. I can confirm that in order to log work on an issue that you need make a call to the Update Worklog rest API which Atlassian have documented here passing the parameters outlined on this page in order to update a worklog. The rest endpoint that you are calling inside of your…
-
Hi Mark, This question appears to be a duplicate of your question located here and I have provided a response on the other question. Regards, Kristian
-
Hi Mark, Thank you for your question. I can confirm that there is a plugin for Jira Cloud called Version Sync for Jira which can be viewed on the Atlassian Marketplace here which is designed to Synchronise versions across projects and I would avdise looking at this plugin to achieve your requirement. If you wanted to look…
-
Hi Zoe, Thank you for your question. I can confirm that the Atlassian documentation pages on the provided JQL functions for Jira Software located here and for Jira Service Desk located here indicate that they do not provide a releaseDate() JQL function out of the box. I can also confirm that ScriptRunner for Jira Cloud is…
-
Hi Shirley, Thankyou for confirming that your issue is resolved. I do not think this issue should happen with other schemes but would advise testing the migration process on a test server first of all to identify any potentail errors. Regards, Kristian
-
Hi James, I can confirm that the licensing for Project Configurator has not changed and would ask if that if you are still having issues installing the plugin that you create a support request inside of our support portal here(https://productsupport.adaptavist.com/servicedesk/customer/portal/37) so that we can help…
-
Hi Shirley, So that i can understand what error is happening when you try to create a workflow can you please attach a screenshot here of the error which is displayed when you try to create a workflow. Also can you please advise if any errors are shown inside o the atlassian-jira.log file when you try to create a workflow.…
-
Hi Mohamed, Thank you for your question. I can confirm that the reason that the code you have linked to in the articles above will not work inside of ScriptRunner for Jira Cloud is due to the fact the code you have provided is fro ScriptRunner for Jira Server and this will not work as Atlassian only provide a rest API in…
-
HI Shirley, It is possible that the errors with the workflow have caused it to not import in correctly. Can you please try deleting the workflow with the name of Core Workflow which you imported in and see if the workflows page starts loading again once this workflow has been removed. Regards, Kristian
-
Hi Sameer, Thank you for your question. Can I please check if you are using Jira Server or Jira Cloud as your screenshot which you have attached shows some Jira Server code configured as Jira Cloud is different to the server version as described here due to the fact that the Java API does not exist in Jira Cloud. If you…
-
Hi Shirley, I can confirm that this error indicates that one of the workflows for the project being imported contains a draft which is blocking the import. Can I please ask you to try working around the error by reviewing all of the workflows in the target instance and publisging any unpublished drafts for the workflows.…
-
Hi James, I can confirm that the run on user is just selecting the Jira user that executes the Script to be ran and does not impact the from email. Unfortantely the from name cannot be set as in the notify API used by the script Atlassian do not provide a paramater to configure the from name or any other from properties…
-
Hi Adam, Thank you for your response. Can I please ask you to confirm if in the sample script shared if you updated lines 10, 13 and 17 to include the Issue Key, Status ID and transition ID by removing the text that contains the < > angle brackets and by replacing it with just the value inside of the quotation marks. If…
-
Hi James, Thank you for your question. I can confirm that it is not possible to specify the email address that the emails is sent from using ScriptRunner for Jira Cloud as the Notify api provided by Atlassian as documented here does not provide a request property to set the from email and instead uses the mail address…
-
Hi James, Thank you for your question. I can confirm that you can override the notification map which is sent to the notification API as described when clicking the Show More link above the additional actions code bo which links to the API documentation here. I have created an example of the line you should add to override…
-
Hi Adam, Thank you for your question. I have created an example script located here which you can run on the script console inside of Jira Cloud in order to get all of the linked issues for an issue and to transition if the issue if all the issues are in a specified closed status. You will be able to use this script as a…
-
Hi Shashi, Thank you for your question. I have created an example script located here which you can run on the script console inside of Jira Cloud in order to get the release date of a fix version on an issue and set the issues due date to this date. You will be able to use this script as a reference to see how you can get…
-
Hi Chethan, I have created an example script located here which can be placed on a post function in a workflow and shows how you can extract the value of a user picker field and set the assignee as the extracted user. Using this script you just need to set the UserPickerFieldName variable to the name of your user picker…
-
Hi Abhishree, I have created an example script located here which can be placed on the last post function of the Create transition for a workflow and shows how you can extract the value of a user picker field and set the assignee as the extracted user. Using this script you just need to set the UserPickerFieldName variable…