Comments
-
Hi Gorzech,As mentioned this script is used in Behaviours inside Jira 6.3.5 and works. Can you please post the following details so we can try to debg further:1.) What version of Script Runner you are using.2.) What version of Jira you are using.3.) Where and how you have configured this code inside your Jira instance.4.)…
-
Hi Gorzech, I have a piece of code which has been is used in a JIRA 6.3.5 instance to allow only the Issue type of Bug or Story to be selected when an issue is any other state of the workflow other than create. This is done using the Behaviours plugin by applying the following code below as a behaviour to to the Issue Type…
-
Hi Jayashree, I would look at the post here by Jamie where he suggested using the code below to see what fields are used on a sscreen. def issueTypeScreenSchemeManager = ComponentAccessor.getIssueTypeScreenSchemeManager()def issueTypeScreenScheme =…
-
Hi DF, That is the correct searcher and I am glad I could help. If this answer is useful can you please mark it as accepted so other people with a similar question can easily find this answer in future. Thanks Kristian
-
Hi DF, I have attached some example code of how you can use to create a scripted field using a Text Field template that will take the created date and add a number of days to it based on the priority. This field returns a string value of the date which you may find easier to use for reporting purposes. import…
-
Hi Kim, I would raise a request through the Adaptavist support portal in order to get the developers to investigate this further. Thanks Kristian
-
Hi Flamio, This can be achieved by placing a custom script transition on the workflow transition to the required status which checks if the issue is a sub-task and if it is in the correct status. Please note you need to place this post function as the bottom last function in the list below the Fire a Generic Event event…
-
Hi Noreen, Your licence should appear inside of your companies My Atlassian account. If you are unable to find the licence key then you will need to sign up and raise a ticket in the Adaptavist Product Support portal at https://productsupport.adaptavist.com/ giving the SEN number for your production server so that we can…
-
Hi Alexander, I have posted below a code example which shows how you could use a scripted field provided by the Script Runner plugin to take the Case Number out of a number field which stores the Case Number and the to display it in a scripted field called Case which displays the URL. You could always make the Case Number…
-
Hi Dung, You can do this using the project manager and looping over the projectObjects to get the information that you require. I have attached a sample script that you can modify along with a screenshot of what its output looks like. Script: import com.atlassian.jira.component.ComponentAccessor// Get the Project…