Comments
-
Hi Amal, I can confirm that the Behaviours feature of ScriptRunner for Jira Cloud can help with this requirement. We have an example located here which shows how to restrict issue types based on user groups that can be used as an example to create the script that you require. If you need further assistance with creating a…
-
Hi Prathap, I do not have an exact script to help with this requirement and would ask you to raise a support request here if you need assistance with creating the script to solve your requirement. Regards, Kristian
-
Hi Prathap, I can confirm that if you have the ScriptRunner for Jira Cloud plugin, the Behaviours feature can help to achieve this requirement. You will then be able to create a behaviour to run on the Issue View that fetches the current issue and checks if it is an a certain status and then makes fields read only using…
-
Hi Rich, I can confirm the answer is still the same for Jira Cloud, and there is still no way to hide UI elements with ScriptRunner for Jira Cloud. Regards, Kristian
-
Hi Krystof, I can confirm that the tool my company makes, ScriptRunner Connect, could help with this use case. We have an example template here for connecting Jira Cloud to Trello that could be modified to work with Jira Server, changing the API Calls. If you would like further information, then I would advise you to…
-
Hi Tony, I can confirm if you use ScriptRunner for Jira Cloud, if you are able to get an event triggered when the alert is created, then you could use a Script Listener to send a message into Google Chat, if they have a REST API you can call. As Jim said, you should use Script Variables to store API keys as a best…
-
Hi Haishen, Your curl request looks correct, comparing it to the API docs. I have requested Atlassian support take a look at this request to see it they can suggest further, why it is not working as expected. I hope this helps. Regards, Kristian
-
Hi Ch, As far as I am aware, there is no way to see what storage you have used in Jira Cloud. I believe the only way to find this out is to raise a support request with Atlassian and ask them to tell you this. Regards, Kristian
-
Hi Frederik, This sounds like a bug itself as line breaks should be maintained when editing a code snippet, and I would advise raising a support request with Atlassian to highlight this issue. I have clicked the Request assistance button on this post to notify Atlassian Support so that they can look at this question for…
-
Hi Javid, Using a validator to parse the markup for the table would be complex and tricky to do, so I would not advise this. An alternative approach would be to make each question in the table its own text field and then you could write a workflow validator to ensure each field is not empty during the transition. You could…
-
Hi Celine, I do not have a script to do this but can confirm to do this you would need to write a script to first call the Get Inline Comments API to return all inline comments. Then you will need to loop over these and call the Delete inline comment API to delete the comments by passing in their ID. I hope this helps,…
-
Hi Yogesh, The only way to have the asterisk would be via a behaviour, which will not be possible until Atlassian supports this via the UI Modifications API. Regards, Kristian
-
Hi Yogesh, I can confirm that behaviours in Jira Cloud do not support the issue link field, so you will not be able to achieve your requirement of making it mandatory. The reason for this is that Behaviour is built using the UI modification API provided by Atlassian and this does not support the issue link field meaning it…
-
Hi Digvijay To achieve these requirements, you would need to configure your behaviour to work on the Issue View for the On Load action. Your script would need to stary of by getting the current status of the issue which you will need to do by making a call to the makeRequest api to get the current issue and to get the…
-
Hi Jens, I can confirm listeners in ScriptRunner for Jira Cloud can currently only be triggered on Atlassian-specific events. This means you will not be able to trigger the listener, and its logic is based on a webhook event received from an external system such as BC to achieve your requirement. We have a feature request…
-
Hi Digvijay, Can you please raise a support ticket so our support team can help look at the script? They will help you create the script you require to solve your requirements. Regards, Kristian
-
Hi Digvijay, I can confirm the best place to see example scripts for ScriptRunner Jira Cloud is either in the documentation pages or in our script examples website. As for your use case, we do not have an example of restricting issue-type options based on a user group here, and you will be able to modify this to restrict…
-
Hi Digvijay, Can you please raise a support request with our support team here and they will be able to debug these issue further for you and assist you with these. Regards, Kristian
-
Hi Digvijay, Please can you set the description using Atlassian document format as I suggested as the code you have is currently invalid and this is why you are getting this error as it is not populating the description field. If you click the examples Button and select the example named Set default text in Description…
-
Hi Digvijay, There are two issues with your script which are: 1. It should be getFieldById, but you have written getFielById, which spells it wrong, which means the script will not work. 2. To set the description you need to use the Atlassian Document Format and we have an example here which shows how to set the…
-
Hi Jaimash, I believe this feature is controlled by Atlassian, meaning app menus for all apps don't say expanded when a menu item is clicked. I would suggest raising this as a feature request with Atlassian to see if they change this behaviour for apps. Regards, Kristian
-
Hi Luka, I apologise for this. Please try re-opening the example now, and it should be visible. Regards, Kristian
-
Hi Luka, Unfortunately, Atlassian does not provide a Rest API in Jira Cloud to parse an HTML string into Jira Wiki Markup format. However, if you know what valid Wiki Markup you need to convert to, you could use the XMLSlurper library provided by Groovy to parse the string and return a new structure using ScriptRunner for…
-
Hi Gushwan, You are correct that when it is .atlassian.net domain that it is Jira Cloud. However, in Jira Cloud behaviours use Javascript as documented here which means you wlll need to write it similar to the example I shared. As mentioned in my previous post, if you use a workflow, it will only work when an issue is…
-
Hi Jayath, I can confirm that ScriptRunner for Jira Cloud runs Groovy as its scripting engine, which means it can run any standard Groovy or Java packages provided by default, as well as the extra packages we provide which are documented here. This means you can use the standard date/ time APIs to calculate the number of…
-
Hi Gunawan, I can confirm that behaviours would be the correct approach if you wanted to make fields required on screens. If you used workflow validators you could this during transitions and pop up transition screens but not do dynamic field level control on screens like you can achieve with behaviours. However, in Jira…
-
Hi Yury, The first part of the function where you have "" is an empty subquery and this is not valid in ScriptRunner for Jira Cloud. The function expects a value to be entered in the subquery to restrict how man issues are returned. If you enter a subquery, such as to search for specific projects, then the query will be…
-
Hi April, I can confirm that if you have the ScriptRunner for Jira Cloud or Enhanced Search for Jira (JQL & Subqueries) app then you can use the linkedIssuesOf() JQL function to write a query to find these issues. A query to achieve your use case using linkedIssuesOf() would be similar to: issueFunction in…
-
Hi Mauricio, I can confirm with Behaviours in Jira Cloud you need to retrieve the roles from the context to check them. We have a couple of example scripts in the docs linked below that show how to do this that you can use as a guide to help create the script that you require. Examples: * Limit Issue Types Based on User…