Comments
-
Hi Adam, If you want to make a value visible for a field when a value changes then you need to use the onChange trigger and use the getChangedField() function. I can confirm that the example script here gives an example of how to make a field visible when a value is selected in a select list field, and you will be able to…
-
Hi Martin, linkedIssuesOf is a JQL function provided by the ScriptRunner for Jira Cloud or Enhanced Search for Jira Cloud apps. To use this you would need to install these apps and use the Enhanced Search page it provides. I hope this helps. Regards, Kristian
-
Hi Ana, It will depend on what action you want to copy the field value. If you wanted to do it when an issue is created then you could use Behaviours and I can confirm we have some examples of how to use Behaviours here. If you wanted to do it on an event such as when an issue is updated then you could use a script…
-
Hi Santipac, You are welcome. Regards, Kristian
-
Hi Lisa, I can confirm the best place to find scripts is in the Script Libray and the example here will be a good script to start with and modify to suit your requirements. Regards, Kristian
-
Hi Santipac, I don't believe search is supported in whiteboards. I see Atlassian did a blog at https://community.atlassian.com/t5/Confluence-Whiteboards-articles/%EF%B8%8F-What-s-new-and-what-s-coming-to-whiteboards/ba-p/2536171 last November which mentions its a feature coming in the near future. Id suggest asking on this…
-
Hi Lisa, There is no way to achieve this out of the box. You would need a plugin such as ScriptRunner for Jira Cloud to be able to use the Behaviours feature to achieve this. Alternatively, a plugin such as Dynamic Forms would also help achieve this. Regards, Kristian
-
Hi Siju, I can confirm it is not possible to have multiple subtasks in Team Managed Projects as Atlassian does not allow this. They have a feature request open to allow this at https://jira.atlassian.com/browse/JSWCLOUD-20901 and I would advise voting on this and adding your use case to this. This means you cannot achieve…
-
Hi Nahom, I would recommend using a tool to configure this integration such as ScriptRunner Connect which will allow you to pull and sync data between both systems. With ScriptRunner Connect you can get started for free here and start playing around to see how the tool could meet your requirements. If you would like a demo…
-
Hi Jamshaid, I just tested and getting the custom field from the fields API does not return the description as Atlassian doesn't expose this to this endpoint. However, the description is exposed to the Get Field Configuration Items endpoint. This means you can make a get request using ScriptRunner for Jira Cloud to get the…
-
Hi Andy, The context provided by Atlassian when a behaviour is very limited. This means the way to get the status is to get the issue object using the key out of the context and to return the status out of this. You could do this using the example code I have provided in the snippet file located here. I hope this answer…
-
Hi Ben, I am glad Enhanced search solved your requirement. Could you please ark the answer as accepted, so that other users know this is a valid solution? Regards, Kristian
-
Hi Ben, I believe you will need a plugin to see issues added to a sprint after it has been started. The ScriptRunner for Jira Cloud or Enhanced Search for Jira Cloud plugins offers the addedAfterSprintStart() JQL function as documented here that would help to achieve your requirement. Regards, Kristian
-
Hi Yaniv, A Multi Select Field returns an array so you would need to check the changed field value as mentioned here. You would then need to check if the value contained the option you need and if so perform the operation required. I have created an example script here which shows how when a specific value is selected…
-
Hi Jochen, I can confirm you cannot limit the values in the Issue Link Field in Jira Cloud as Atlassian does not support this field in the UI Modifications API which behaviours use. However, you could write a workflow validator to allow issues to be created or be transitioned only when a certain link type is selected.…
-
Hi Yousif, I can confirm that in ScriptRunner for Jira Cloud validators are writeen using the Jira Expression framework. We have some examples of how to use this in our docs page here and there is an example here of how to allow a parent issue to be transitioned only when all subtasks are in a paticular status that can…
-
Hi Luana, The ScriptRunner Connect app cannot directly manipulate data in a form and validate it instead you want to look at the Behaviours feature inside of ScriptRunner for Jira Cloud. I hope this information helps. Regards, Kristian
-
Hi G Ashok, In Jira Cloud, I am not aware of any add-ons to do this. However, Atlassian provides a User Management Rest API which could be called from a scriptRunner Script to disable a user. I hope this helps. Regards, Kristian
-
In cloud there is no option to create this type of Scripted field currently.
-
Hi Vikrant, We provide the libraies but you will neeed to write the logic to connect to databases in your script and we have examples of how to do this in the docs page located here. Regards, Kristian
-
Hi Viktoryia, I can confirm that ScriptRunner for Jira Cloud Workflow validators use the Jira Expression framework provided by Atlassian. Using this you would need to write an expression that first checked the status of the current issue was in progress and would then need to get all issues in the project and filter these…
-
Hi @Yousuf Al Rawahi Only certain fields are supported on the issue view screen and you can see which ones are supported in the documentation page here. If your field is a user picker field which it looks from the name then this is not supported on the Issue View screen whcih means it cant be hidden. I hope this…
-
@Matt Parks - Behaviours are different in Jira Cloud and only work on the Create and Issue Views, however in cloud the issue view is the edit screen that DC has. Regards, Kristian
-
Hi Flavie, I can confirm that ScriptRunner for Jira Cloud Workflow validators use the Jira Expression framework provided by Atlassian, and the Jira Expression Framework does not provide any way to use JQL in an expression. This, unfortunately, means there will be no way in the validator to search for the number of issues…
-
Hi Leena, I can confirm that the Behaviours feature of ScriptRunner for Jira Cloud can help to achieve your requiement of restricting issue types when creating issues. We have an example of doing this in our library script here, which shows how to restrict issue types based on user groups. You can modify this example to…
-
Hi Daren, Thank you for your question. I can confirm that in ScriptRunner for Jira Cloud that Workflow validators use the Jira Expression framework provided by Atlassian, and you will need to use these to create the conditions you require. It sounds from your description that you require that when a value is selected in a…
-
Hi Ryan, I can confirm unfortunately it will not be possible to set the resolution date, this is because Atlassian do not allow a date to be specified in the rest API when updating the issue API, so this will not be possible to achieve with ScriptRunner for Jira Cloud. I hope this information helps. Regards, Kristian
-
Hi Trudy, I checked and the document does mark linkedIssuesOfRecursive as available in Cloud. Regards, Kristian
-
Hi Jesus, It is still the same as the answer above: you cannot get users last login dates but add or remove users from groups with ScriptRunner for Jira Cloud. Regards, Kristian
-
Hi Ward, What type of field is last comment if its a text field to add new lines you will need to use a new line character of \n. The page at https://www.baeldung.com/java-string-newline gives examples of how to add new lines to strings in Java and this is what you will need to do. Also I would advise constructing the…