Jira scriptrunner issue picker We have a working Scriptrunner Issue Picker for Requested Host on the Data Transfer Hello. 2. This is what I noticed, when there is a user already set in the Reporting Manager field, the value will be blank when we run the script. Space settings. at com. ScriptRunner for Jira Cloud allows you to extend the functionality of Jira Cloud, executing scripts to interact with Jira as W orkflow Extensions or S cript Listeners. Hi, I have a Scriptrunner Behavior who (on the service desk portal) has to take over the values of an issue selected in an issue picker field in Insight Custom Fields. Contributor. component. Only the value of an Insight referenced custom field is not taken over. To access ScriptRunner JQL functions: Select the More drop-down option, then I got it working by transferring the data to a new object instead of passing back the Issues List: import com. getIssueByCurrentKey("HOSD Solved: HI, we have a scripted issue picker field in our customer portal, but for the customer no issues are displayed. You must be a registered user to add a comment. This is the script. 7. DefaultIssueChangeHolder; MutableIssue issueToUpdate = (MutableIssue) issue; I am trying to build a listener that works as mentioned below: Field A : custom multi issue picker exists on issue type X Field B : custom multi issue picker exists on issue type Y in case I have 2 Hi, I have tried some methods and could not succeed, I need some help in creating the new issue using script runner script console. I have a multi issue picker X (with a JQL Goal: To limit what issue types a user can link my "Feature" issue type too. Select an issue, or issues, in the drop-down, to view how the result will be displayed when viewing an issue, and in the Issue Navigator (column view). A field to select the relevant sales contract from a contracts database, for implementation of a new feature. It has a select list for Owner. issueManager. You can vote on existing ideas or suggest new ones. Previewing is useful to verify that the picker is only displaying the correct candidate issues. search() takes in an ApplicationUser parameter no matter what. html to convert a text field to a multi issue picker field setCustomFieldValue('Custom User Picker Field', author)} Just to run through the script, first we get the issue we want to update (this will change if you want to bulk perform this action, or have this script elsewhere). MutableIssue If you have a license for ScriptRunner and its JQL functions, then an equivalent to the "IS EMPTY" clause for those that really need to know whether it's empty could be:. It seems to be a genuine bug as my code isn't as complex as above. Add a Custom Field with type Date Picker. issue. issueFunction in issueFieldMatch("", "Name of Your Issue Picker Field", "^$") At If you have a license for ScriptRunner and its JQL functions, then an equivalent to the "IS EMPTY" clause for those that really need to know whether it's empty could be:. After creating the field ensure it has the correct context and the I am using a Script Runner custom 'Issue Picker' field to display the JQL results the 'Prior Release Names' field. Watch. We have a JIRA Custom Issue type called Host that contains the details of Host servers that may participate in data transfer. They are also displaying these related issues on a standard "Filter results" dashboard gadget. ImportUtils Hi, We are trying to set a custom field User Picker (Single User) using scriptrunner. Is there a way to pull in the linked issues in this field via a Heirachy? Example: (Issues in the picker) Objective 1 Objective 2 Objective 3 Objective 4 Objective 5 Initiative 1 - Issue Picker: Objective 1 Objective 2 Initiative 2 - Issue Picker: Objective 3 Initiative 3 - Issue We are planning to use Issue picker field and convert it to a Jira Linked Issue of a "particular type". runner. In the ideal case I would have a list for my issues from the issuetype B, where all the respecive issues from the issuetype A are named. def epicLink = getFieldByName('Epic Link') def issuePicker = getFieldByName('Issue Picker') Hey folks - I want to use Automation for Jira to set a Multiple Issue Picker field type to trigger issue. issue. So I just wonder - how I can change the JQL for custom field "Issue Picker" in behavior? (I need to do it in behavior, because I need to suggest different issue types based on issue custom field) As part of a Post Function scriptrunner Groovy script i'm wanting to check if any of the issues within the Issue Picker have a specific field value, matching the same field from the parent issue. Content. ) and fits the query. Docs Home; The Adaptavist Group; Kolekti; ScriptRunner; Upscale; Docs Home The Adaptavist Group Kolekti ScriptRunner Upscale. We recommend that a issue link type reserved only for the purpose of creating issue links for this field is used. So I have written a Behaviour to update the JQL query on the IssuePicker (named requestingEpic here): def projectKey = projectValue PLEASE READ How to use this board: This board is for our users to let us know how we can improve ScriptRunner for Jira Cloud. It is I know this is an old post but i've just hit this same issue in scriptrunner. This is used for a slightly different purpose than the built-in Epic field, and I need to have both. Solved: Hi, I'm very new to Scriptrunner, and I need help! I want to grab the user from a custom field (Business Analyst) and add them to Watchers. We tried email or accounID but still the Reporting Manager field User Picker (Single User) is not updating. the Epic issue type. editable. Product Q&A Groups Learning Events . When using JQL to search for issues, if I want to create an issue via Jira Automation, which has a ScriptRunner Issue Picker field set as a required field. In any case, using JQL searches in Scripted Field is not recommended as mentioned here: JQL Searches in Script Fields Otherwise, you will get Hence my goal is to link the all issues from the issuetype A to an issue of the issuetype B, if the assignee is the same (and some other conditions - but it doesnt matter for this question). Hi @Kay Domschke I would do it with a postfunction. The value is the Initiative selected from the Issue Picker. In the case of a single issue picker, the passed list issues always contain a single issue. December 20, 2017 . How do I limit the dropdown to only show the summary? All of the summaries are unique, so there is no concern about having a summary linked to 2 issue keys. If you've already registered, sign in Hi Dieter, I don't think that is possible because Jira API for SearchService. getIssueByCurrentKey("ID-321") Collection<Issue> lists = [addOne, addTwo] MutableIssue myIssue = issue issue. However, my customer does not want to see the issue key, this would be confusing for him. ScriptRunner for Jira Data Center. Database picker examples. CustomField import com. Create . Hello, I have been programming for years but am new to Jira and ScriptRunner. Next we get the change history of the issue, and reverse that list, as it defaults to earliest first. 0. I do have a statis value but it cannot simply be set via Choose a field to set since this custom field type is probably not supported. This 'Prior Release Name' works fine and displays the prior values, e. CustomEndpointDelegate I have created a ScriptRunner IssuePicker field, and provided an initial JQL query to populate the listbox values. Solved: HI, we have a scripted issue picker field in our customer portal, but for the customer no issues are displayed. and cannot find the The characters that the user has typed so far into the picker field. database We updated the Scriptrunner from 5. Need customers more permissions to use a scriptrunner issue picker or to use the embedded JQL ? BR. How to addCustomFieldValue() for IssuePicker with multiple values? What value is expec Hi, We have Jira software Datacenter where users were linking one story to multiple project issues, to restrict that we have no option. It acts like the issue gets cached, so as I transition say Issue AA-200, then go to another issue AA-205 and transition it, the event code logs AA-200's data. ComponentAccessor import com. Now I would like to update also another custom field which is a user picker. onresolve. Dear community, Question: How do I get the data of the current issue, for with an event fired in a Scriptrunner listener?. MutableIssue#getCustomFieldValue(com. The development, release, and . ComponentManager import com. The only way to work around this is to use a superuser instead to do the search. g Release 1, Release 2, Release 3 etc. Currently, I created a Multi-Select Issue Picker field and added it to the screen. 49 and our existing Behaviours initialiser script now doesn't work how it used to and appears to be very similar to @Rafael Franco 's issue as well as what @Michelle Pogado commented above. All the picked Issues for that field need to be added as Linked Issues of "certain link type" with "Outward link Description". Hi Atlassian Community, im looking for solution to set Issue security Level based on custom field value. The filed to "setFieldOptions" is not system fields or custom select field, it's the "Custom Picker" filed created via script runner. Without these two custom fields I The Database Picker scripted field displays database records returned by a pre-configured SQL query from a connected database. Product Q&A Groups ScriptRunner Jira / Issue(s) Picker / Subtasks . All content. Background: I am developing a little groovy script to send issue-data to a sharepoint list. MutableIssue MutableIssue issue = ComponentAccessor. issueFunction in issueFieldMatch("", "Name of Your Issue Picker Field", "^$") At Issue Navigator Basic view. 5/jira/behaviours-conversions. To customize the display of this value, implement: issue The target issue as selected. After creating the field ensure it has the correct context and the A field that allows for picking an issue, or issues, from a pre-defined JQL query from a linked Jira instance. Users picks a proj Unfortunately "FIELD is Empty" doesn't work as Jira/ScriptRunner does not support searching for EMPTY values for issue picker. I have scriptrunner so I guess it should be doable with a script listener but I am a noob. The field is an Insight / Asset object field and i only need to return a true or false to determine if other actions are required. canned. I have a scripted field (Issue picker searcher type) called "Link your Issue" on the create screen. Does anyone have any suggestions on what the script should look like Enter a Preview Issue Key and click Preview to view the drop-down. This field will have a dynamic JQL which will look for current issue custom field called "Organização" (not the same as system Organization) and will search for results Enter a Preview Issue Key and click Preview to view the drop-down. This is no problem so far, but how do I clear the epic link form field, if the other form field is cleared? Empty string, -1 and null are not working. You can use JQL functions in the Basic view of the issue navigator. This is a live issue, in that its values will reflect any typed into the current form. 6. setCustomFieldValue(customField,lists) When I pass in a String, it adds the single issue to the Multiple Issue Picker field but I require to add multiple issues in one go. picker. I have tried Jira automation but Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a In the last example, they have created a project picker and an issue picker. Place it on the "Create Issue Screen". If there are more issues than those included in the ScriptRunner Issue Picker field, they will be lost permanently. For example, we are linking all issues related to a specific prospect under a prospect issue. Hi everyone. We are now Issue Picker fields can not be sorted unfortunately, there is a good explanation of why this is in our Documentation here, also we have further explanation in this Developer Ticket where the Devs explain why this has been removed: SRJIRA-5280. JIRA v7. Kai . Single issue picker. I am trying to recreate a sort of cascading list within scriptrunner. CustomFieldManager import com. Bojan Zekanovic November 13, 2018 . For example, you can set up a custom picker to pick a Jira object such as a Version, User, or Component when you want custom selection criteria that are not available when using the ScriptRunner for Jira Data Center. jira How to use ScriptRunner to update Issue Due Date based on fixVersion release Date . So basically creating two custom picker fields with the second one needed the value of the first one in order to show proper results. Answer. When I update the fix version release date I want all the issues associated with that version to import com. Then, when viewing an issue, a user can see the Issue Key, Summary, Status and Priority. In more details. Is there an existing rest URL like for issue pickers that I can use? Or do I have to go through the pain of creating an end restpoint (never done that before) In this example, the Issue Picker value is taken from the issue MOCK-1. . PLEASE HELP! Trying to utilize ScriptRunner Issue Picker field with JQL to get sub-tasks, but doesn't seem like this this field is compatible with subs. 3. Pls see below code for the picker . As mentioned above, you will need to modify the code I have a Scriptrunner custom single issue picker field "Master" which is used on selected custom issue types to allow users to select from a subset of Epics. Examples for usage might be: If you retrieve or set the value directly on the issue, the result will be a I followed the page https://scriptrunner. The use case is I have to create issues in project 'POWN' with a project picker and user picker values set - both are single selects. scriptrunner <can't read the rest> Please check if the declasred type is right and if the Hey folks I need your help, I guess it is a simple question. Once the issue transitions to In Progress, as expected, the date time field is updated to 15 February 2024 17:00. Thanks for replying. This field will take input from users to get the date value. Eventually, both fields will be fed But if I will choose the suggested issue, and will try to submit the form - I will receive an error, that I choose the wrong issue (not 'Type=Task'). rest. Hi Community, I want to copy single issue picker field which is script runner field from Epic to it's child issues. you need to have the new issue picker field present on Create screen or any transition screen (you can't use it on standard Edit screen because post function is not invoked, you could solve it with listener in this case]; you will adjust your workflow and put scripted postfunction to it Jira doesn't have an issue picker built in (Atlassian expect us to use issue links), so there must be an app providing it, and I suspect its something in that which is doing something odd. After creating the field ensure it has the correct context and the Enter a Preview Issue Key and click Preview to view the drop-down. The function is about comparing issue pickers current and previous value with each other then change the issue accordingly, but when we try to get the issuepicker custom field value after transition (post function runs in first place) we only get the previous value. PickerOption Issue addTwo = ComponentAccessor. We have just upgraded from Jira 7. Shortcuts. Like Be the first to like this . 12 and script runner 5. project. The current Issue object which the field is attached to. groovy:241) Apparently what is happening is that when editing Issues, the Database Picker is sending to the getSearchSql method, the third parameter (original value) as a List, not a String as it was ScriptRunner. 9. For example, to display the key and the value of a custom field: If the current user does not have permission to view the selected See more Use the Issue Picker script field to create a field that allows you to pick an issue, or issues, from a pre-defined JQL query. "Current search" seems to be based on JQL query. The Fields to search option provides default values that allow users to search for an issue by typing terms from the Summary or the Issue Key. PickerOption import Make sure you have ScriptRunner for JIRA plugin installed in your JIRA. Looking for some help, Open to all suggestions. fields. This is a question specifically about the Adapativist ScriptRunner "Custom Field" of type "Database Picker". How-to articles. That works great. Issue import com. How-to articles This trigger is hidden. getEmailAddress()), I want For a Custom Picker scripted field is there any way to access the issue or project context of the field, similar to the issue which is available in a standard scripted field? The following code (or similar for an issue parameter) Issue addTwo = ComponentAccessor. 4. For example new Jira user, that have freshly logged in, won't have any issue in this section. I want to modify the listbox values based on another field on the form (a Project pick list). 2. Anybody know how to do this? Here's the. Nathan Walker October 25, 2019 . In this case, you are responsible for not disclosing information to I've replaced these fields, with scriptrunner issue picker fields as essentially, thats whats happening (issues that meet specific criteria are being picked from another project), however, the issue picker fields can only be searched against by issue key (whereas the current fields that are being used are searched by the issue summaries) which I've replaced these fields, with scriptrunner issue picker fields as essentially, thats whats happening (issues that meet specific criteria are being picked from another project), however, the issue picker fields can only be searched against by issue key (whereas the current fields that are being used are searched by the issue summaries) which I have created an issue picker field which pulls in values from another Jira project. Sometimes we have to change a versions release date. scriptrunner. I use Scriptrunner to send emails to assignees and this works well. Like Be the first to like this I am straggling to implement it on Jira cloud. component Obvously the reference to the value of the customfield seems wrong. model. Below the static code: import com. I am aware of using scriptrunner behaviour but I need to use Database picker field and I have nearly 500 projects in Jira. to 6. (This question is here because the Adaptavist documentation specifically says questions about the plugin should a client is using Adaptavist Scriptrunner with Version 5. Does anyone have any ideas or information that might lead me in the the right place Hello. You could create your own Issue Picker with the Custom Picker, but as soon as you start typing results to search, the @Sean Chua _Adaptavist_ . I will keep searching how to set a user picker field proberly. On this gadget the issue picker field is also selected as a visible column. jira. getIssueManager(). Adam Gaudry. e. IssueEvent import com. Hi, using a Scriptrunner Behavior I want to check on a Jira Service Management Request type whether issue-picker field (Field A) OR a URL field (Field B) is filled by the customer. I did the development in the "Groovy Console" of the "JIRA MISC WORKFLOW EXTENSIONS "-App. Ask a question The Multiple Issue Picker is a scriptrunner field - https: Using Scriptrunner to update group picker based on answer in text custom field . They are using an issue picker field in one of their projects to pick related issues. SearchService I've been unable to find any information at all about how the Issue Picker actually handles sorting, it seems pretty random. AbstractGenericPicker. bc. Calendars. PickerOption import com. The format displayed is 15/Feb/24 5:00 PM. I find the best way to do this by using ScriptRunner workflow function: Set issue security level depending on provided conditionHelp Sets issue security if the provided condition evaluates to Using the "Show Snippet", I grabbed the example for Version picker, and converted the suggested configuration code to make it work as a project picker: import com. Results will update as you type. Hi EazyBI Community, We have a custom field which is a Issue Picker from ScriptRunner. Fields A OR B must therefore be filled at least. I have scriptrunner & JSU plugins. common. I hope this helps to solve your question. com/4. Hence, I need to use More options and tried: {"fields": {"customfield_XXXXX": "JIRA-7"}} Hello, I would like to create a custom field that would work like the native linked issue functionnality. This works really well in all stuations except for reporting - the field is not available Trying to utilize ScriptRunner Issue Picker field with JQL to get sub-tasks, but doesn't seem like this this field is compatible with subs. Thank you very much for your quick answer. Scripts can be useful for automating regular actions, such as updating an issue during a transition or performing a calculation and storing the result in a custom field on the issue. Examples include: A field to select a customer from your internal customer relationship management database. Cannot find matching method com. Once the value from the Issue Picker is extracted, it is placed into the JQL Query. The issues available are limited to JQL search. atlassian. I've been using scriptrunner issue picker fields to ensure that certain issues are properly linked in our processes. What you can expect from the ScriptRunner team: We will review suggestions on a regular basis in an effort to keep the roadmap aligned with current priorities. Hi @Ram Kumar Aravindakshan _Adaptavist_ ,. For example, you could use this script field to create a field that links Incident issues records to Problem issues. I am using a System Disposition issue type and when that issue is moved to a status of complete AND the field "unit" is "OCIO" I want to automate the creation of a new issue (a new issue type, as well"System Decommission") and I want to automatically assign it to someone and link it to the one I 1. 13. Is it possible to show a Scriptrunner Issue Picker field on a screen but that the user is not given the option to click through to the issue? Regards, Marco The code only has one response to Jira when it says "what do I show to the user?" to the field. ComponentAccessor I want to set the epic link to an issue key from an other form field (scriptrunner issue picker). event. The issue picker is explained before, however I can't seem to wrap my head around the project picker. Eventually, both fields will be fed We are planning to use Issue picker field and convert it to a Jira Linked Issue of a "particular type". This means for the second query and onwards you would an extra queryString paramater of startAt as documented in the API documentation page above as this would return the next 100 Issue Picker for Jira Cloud. and cannot find the Please, note that this automation will remove all of the issues linked with "relates to" issue type every time that it is executed. util. LinkedIn; Twitter; Email; to enable the sub-set search for the issue picker, the code has to tell Jira the field is always populated, even when it's not (this "History search" is returned every time and contains only issues, that are related to user logged user (user is assignee on this issues, reporter, visited them recently etc. and we detected an issue in our post function. Project import com. When the issue is first created, the date is set to 15 February 2024 00:00:00, but the format displayed in this instance is 15/Feb/24 12:00 AM. executeOverridable(AbstractGenericPicker. Sorry Nic, the app is Adaptavist Scriptrunner for Jira. The result return is the child of the Initiative, i. This console is very handy, as one can test the script @Thanos Batagiannis [Adaptavist] I think this is actually a bug in Script Runner / Behaviours. import com. Solved: Hello, Jira's built-in single select picker does not support both value and label properties so I am attempting to use ScriptRunner's Custom Perhaps this is not even the right way to approach this issue, suggestions? import com. I send the email with this line of code: sendEmail(emailAddr, emailSubject, emailBody) But know I dont want to send it to the assignee (assignee. In this case, you are responsible for not disclosing information to In short, I have created a Issue Picker Field called "Issue Associada" and on Behaviours I created an new entry associated to this field. Share. adaptavist. So we developed a workaround, where we created a single issue picker (script runner) custom field and added it to the create screen of the story. Open a jira issue >> I see the custom field mentioned above I named "Assigned Group" >> I select 3 separate users >> Save and close the ticket >> As one of these users, I want to navigate to my dashboard and see a list of all issues I have been named in this new "Assigned Group" custom field. In this case, you are responsible for not disclosing information to Hi Alexy, When using the Search for issues API if you want to return more than 100 issues you will need to use pagination by having multiple search queries which the extra issues. Any idea. in regards to the Field configuration not being stoppable by behaviours, why can behaviours then ScriptRunner for Jira Data Center. We have a Custom Issue type for Data Transfer Request that contains a custom field select list for Business Partner. search. Multi issue picker In the case of a multi-picker, this closure will be called for each selected issue. 2 & ScriptRunner v5. tevhtbcnurgtuutfnbsbgfsnwsaqjfkftxbmzlcfceimqrrhtpmmkpqazeczsdbkhftwkvdhuk