# \#jira

**URL:** https://forum.library.adaptavist.com/tag/jira/12.md

[Latest](https://forum.library.adaptavist.com/latest.md) · [Categories](https://forum.library.adaptavist.com/categories.md) · [Tags](https://forum.library.adaptavist.com/tags.md)

---

## [Run a code a display a dialog in UI fragments](https://forum.library.adaptavist.com/t/run-a-code-a-display-a-dialog-in-ui-fragments/562)

<div class="topic-metadata">

**Author:** [@testusername](https://forum.library.adaptavist.com/u/testusername)\
**Replies:** 3\
**Last updated:** [March 11, 2025, 8:34pm UTC](https://forum.library.adaptavist.com/t/run-a-code-a-display-a-dialog-in-ui-fragments/562 "2025-03-11T20:34:45Z")

</div>

We need to create a button that, when clicked, prompts a dialog to enter a message. Upon submitting the message, it should send an email with the entered content. Currently, I am testing the dialog available in the scrip…

---

## [JQL to find issues with links to a specific issue type](https://forum.library.adaptavist.com/t/jql-to-find-issues-with-links-to-a-specific-issue-type/561)

<div class="topic-metadata">

**Author:** [@osrojas](https://forum.library.adaptavist.com/u/osrojas)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 6:36am UTC](https://forum.library.adaptavist.com/t/jql-to-find-issues-with-links-to-a-specific-issue-type/561 "2025-02-11T06:36:25Z")

</div>

We have a custom issue type called ‘Impediment’. We create and link ‘Impediments’ to other issues using the ‘Blocks’ link type. Through JQL, how can I show all issues that have at least one ‘Impediment’ linked to them? …

---

## [I created server side script and its not working says : Has not run yet when seen in behaviour logs](https://forum.library.adaptavist.com/t/i-created-server-side-script-and-its-not-working-says-has-not-run-yet-when-seen-in-behaviour-logs/552)

<div class="topic-metadata">

**Author:** [@umairmansoor](https://forum.library.adaptavist.com/u/umairmansoor)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 8:59pm UTC](https://forum.library.adaptavist.com/t/i-created-server-side-script-and-its-not-working-says-has-not-run-yet-when-seen-in-behaviour-logs/552 "2025-01-28T20:59:35Z")

</div>

I created server-side script and its not working says : Has not run yet when seen in behaviour logs

---

## [Jira scripted field value changing automatically](https://forum.library.adaptavist.com/t/jira-scripted-field-value-changing-automatically/556)

<div class="topic-metadata">

**Author:** [@ms\_1991](https://forum.library.adaptavist.com/u/ms_1991)\
**Replies:** 2\
**Last updated:** [January 28, 2025, 8:51pm UTC](https://forum.library.adaptavist.com/t/jira-scripted-field-value-changing-automatically/556 "2025-01-28T20:51:05Z")

</div>

Problem:- The ROI field in Jira is inconsistently set to "N" or blank (None) even though the issue summary contains "ROI". The field sometimes toggles between "N" and None after page refreshes or automatically. Script…

---

## [How can I create a list of all defined behaviors?](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545)

<div class="topic-metadata">

**Author:** [@PKl](https://forum.library.adaptavist.com/u/PKl)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 5:56am UTC](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545 "2025-01-08T05:56:58Z")

</div>

For documentation purposes, I need a list of the defined behaviors with information about which projects they are assigned to. How can I create this in a script?

---

## [Deactivating idle users after custom period script is not finding all idle users](https://forum.library.adaptavist.com/t/deactivating-idle-users-after-custom-period-script-is-not-finding-all-idle-users/548)

<div class="topic-metadata">

**Author:** [@avalonian](https://forum.library.adaptavist.com/u/avalonian)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 4:31pm UTC](https://forum.library.adaptavist.com/t/deactivating-idle-users-after-custom-period-script-is-not-finding-all-idle-users/548 "2025-01-07T16:31:55Z")

</div>

Hey all, I am trying to use this script to deactivate all users after 365 days: I have updated numOfDays to 365, but the script only found users up to a certain username alphabetically. It stopped somewhere in the 'E’…

---

## [Scriptrunner not working in view screen](https://forum.library.adaptavist.com/t/scriptrunner-not-working-in-view-screen/542)

<div class="topic-metadata">

**Author:** [@testusername](https://forum.library.adaptavist.com/u/testusername)\
**Replies:** 1\
**Last updated:** [December 20, 2024, 1:38pm UTC](https://forum.library.adaptavist.com/t/scriptrunner-not-working-in-view-screen/542 "2024-12-20T13:38:14Z")

</div>

There are 2 fields A &B. A is a drop-down field and when a particular value from A is selected, only then B field should be visible. We were able to do this in create screen and edit screen. But we cannot do it in View s…

---

## [Copy Tempo Timesheet worklog from story to initiative](https://forum.library.adaptavist.com/t/copy-tempo-timesheet-worklog-from-story-to-initiative/509)

<div class="topic-metadata">

**Author:** [@viyesth](https://forum.library.adaptavist.com/u/viyesth)\
**Replies:** 1\
**Last updated:** [November 19, 2024, 2:01pm UTC](https://forum.library.adaptavist.com/t/copy-tempo-timesheet-worklog-from-story-to-initiative/509 "2024-11-19T14:01:27Z")

</div>

Hi , I have 2 projects, where project 1 has initiative issuetype and project 2 has story issuetype. Users log their time using Jira worklog which is then auto-synced to tempo timesheet in stories. Now, I want to write a…

---

## [How can I use the result of getHashedUserKey() in the AddUserToOrganization Event?](https://forum.library.adaptavist.com/t/how-can-i-use-the-result-of-gethasheduserkey-in-the-addusertoorganization-event/535)

<div class="topic-metadata">

**Author:** [@mattd](https://forum.library.adaptavist.com/u/mattd)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 12:50pm UTC](https://forum.library.adaptavist.com/t/how-can-i-use-the-result-of-gethasheduserkey-in-the-addusertoorganization-event/535 "2024-11-19T12:50:58Z")

</div>

The getHashedUserKey() method on the AddUserToOrganization event returns the hashCode()ed result of the Jira User key. I’m wondering how I can use this in a Custom Listener to get the actual User Key of the Jira user add…

---

## [Retrieve asset key from InsightObjectUpdatedEvent](https://forum.library.adaptavist.com/t/retrieve-asset-key-from-insightobjectupdatedevent/529)

<div class="topic-metadata">

**Author:** [@NWHSbspangler](https://forum.library.adaptavist.com/u/NWHSbspangler)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 11:24am UTC](https://forum.library.adaptavist.com/t/retrieve-asset-key-from-insightobjectupdatedevent/529 "2024-11-19T11:24:59Z")

</div>

I am trying to use listeners to avoid using the asset automations in Jira service management. I need to update attributes when certain other attributes are updated. I am having a problem get the asset key from the event …

---

## [Need script to make Text field mandatory while creation issue based on two custom field value](https://forum.library.adaptavist.com/t/need-script-to-make-text-field-mandatory-while-creation-issue-based-on-two-custom-field-value/534)

<div class="topic-metadata">

**Author:** [@Shiva2430](https://forum.library.adaptavist.com/u/Shiva2430)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 1:39pm UTC](https://forum.library.adaptavist.com/t/need-script-to-make-text-field-mandatory-while-creation-issue-based-on-two-custom-field-value/534 "2024-11-18T13:39:45Z")

</div>

Hi Team, We have three custom fields 1. Customer name (text field), 2. products (Single select) and reported by (single select). When products = test and reported by = users the customer name field need to be mandatory…

---

## [Using Assets to Restrict Fields](https://forum.library.adaptavist.com/t/using-assets-to-restrict-fields/519)

<div class="topic-metadata">

**Author:** [@kennyhoff](https://forum.library.adaptavist.com/u/kennyhoff)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 1:56pm UTC](https://forum.library.adaptavist.com/t/using-assets-to-restrict-fields/519 "2024-10-02T13:56:38Z")

</div>

Our organization currently has over 13,000 groups in active directory. This causes the syncs to take a long time to complete. We are rebuilding our Jira instance to only sync groups that start with Jira, so like Jira Pr…

---

## [Which property to use with components field in behaviours](https://forum.library.adaptavist.com/t/which-property-to-use-with-components-field-in-behaviours/515)

<div class="topic-metadata">

**Author:** [@Mykhailo](https://forum.library.adaptavist.com/u/Mykhailo)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 9:27am UTC](https://forum.library.adaptavist.com/t/which-property-to-use-with-components-field-in-behaviours/515 "2024-10-01T09:27:07Z")

</div>

Hi folks, When using behaviours, it is very easy to set value of a field based on the other field’s value, if it is a single choice picker field or system field, like priority, because you get to use .name property: co…

---

## [Hide issue types from Sub task creation](https://forum.library.adaptavist.com/t/hide-issue-types-from-sub-task-creation/504)

<div class="topic-metadata">

**Author:** [@HarryK](https://forum.library.adaptavist.com/u/HarryK)\
**Replies:** 0\
**Last updated:** [September 2, 2024, 9:03am UTC](https://forum.library.adaptavist.com/t/hide-issue-types-from-sub-task-creation/504 "2024-09-02T09:03:35Z")

</div>

In one of our projects we want to hide 2 Issue Types when creating a Sub Task. We have multiple Parent Issue Types, all of which you can create a Sub Task. We have multiple Sub Tasks and want to only show some of them …

---

## [Retrieving user\_created uuid in the script listener](https://forum.library.adaptavist.com/t/retrieving-user-created-uuid-in-the-script-listener/498)

<div class="topic-metadata">

**Author:** [@alain.kovacs](https://forum.library.adaptavist.com/u/alain.kovacs)\
**Replies:** 1\
**Last updated:** [August 23, 2024, 11:24am UTC](https://forum.library.adaptavist.com/t/retrieving-user-created-uuid-in-the-script-listener/498 "2024-08-23T11:24:33Z")

</div>

Hi, TLDR: I have a script Listener listening to “User created”. How can I retrieve the user\_created webhook? I need that user ID, as I need to perform certain actions with that user that I have just created. These actio…

---

## [Script Listener - Migrate to cloud](https://forum.library.adaptavist.com/t/script-listener-migrate-to-cloud/484)

<div class="topic-metadata">

**Author:** [@swathi](https://forum.library.adaptavist.com/u/swathi)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 10:57am UTC](https://forum.library.adaptavist.com/t/script-listener-migrate-to-cloud/484 "2024-07-23T10:57:04Z")

</div>

Hi Team, We are trying to migrate script listener from DC to cloud. We have a listener which will check the description of an “Epic”. If it contains an issue key of some pattern, for example CR-■■■, it will automaticall…

---

## [Attachment Validation on Create issue Transition](https://forum.library.adaptavist.com/t/attachment-validation-on-create-issue-transition/471)

<div class="topic-metadata">

**Author:** [@sanjay](https://forum.library.adaptavist.com/u/sanjay)\
**Replies:** 0\
**Last updated:** [May 29, 2024, 2:05pm UTC](https://forum.library.adaptavist.com/t/attachment-validation-on-create-issue-transition/471 "2024-05-29T14:05:31Z")

</div>

Hi Team, Can we validate to add only CSV type file while creating issue in Jira. Please share your knowledge Note : I have already tried solution given by Adaptavist Library Thanks

---

## [hasLinkType - Query ScriptRunner](https://forum.library.adaptavist.com/t/haslinktype-query-scriptrunner/448)

<div class="topic-metadata">

**Author:** [@jdumascentersplan](https://forum.library.adaptavist.com/u/jdumascentersplan)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 5:01am UTC](https://forum.library.adaptavist.com/t/haslinktype-query-scriptrunner/448 "2024-04-05T05:01:01Z")

</div>

What would be a similar query I could use in the cloud instance? project = XYZ and status = “In Development” and not issueFunction in hasLinkType(“Development”)

---

## [Open a Pop Up Window when IssueLinkDeletedEvent is fired](https://forum.library.adaptavist.com/t/open-a-pop-up-window-when-issuelinkdeletedevent-is-fired/432)

<div class="topic-metadata">

**Author:** [@sumeet3100](https://forum.library.adaptavist.com/u/sumeet3100)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 12:43pm UTC](https://forum.library.adaptavist.com/t/open-a-pop-up-window-when-issuelinkdeletedevent-is-fired/432 "2024-02-21T12:43:08Z")

</div>

Hello All, We want to open a Screen to take the approval when some is deleting the linked issue. Can, I please get some guidance on this topic.

---

## [Check asset attribut changes](https://forum.library.adaptavist.com/t/check-asset-attribut-changes/424)

<div class="topic-metadata">

**Author:** [@crazzers](https://forum.library.adaptavist.com/u/crazzers)\
**Replies:** 0\
**Last updated:** [January 25, 2024, 12:23pm UTC](https://forum.library.adaptavist.com/t/check-asset-attribut-changes/424 "2024-01-25T12:23:33Z")

</div>

Hello, i already wrote a automation that transitions an inusse when an asset attribut changes. Theres no good trigger for this automation though so at the moment i let it run every 5 minutes. Is it possible to send a we…

---

## [Assitance, Struggling to get this script to work](https://forum.library.adaptavist.com/t/assitance-struggling-to-get-this-script-to-work/420)

<div class="topic-metadata">

**Author:** [@sean.mcconnell](https://forum.library.adaptavist.com/u/sean.mcconnell)\
**Replies:** 0\
**Last updated:** [January 18, 2024, 10:25pm UTC](https://forum.library.adaptavist.com/t/assitance-struggling-to-get-this-script-to-work/420 "2024-01-18T22:25:35Z")

</div>

This script is to check for Duplicate Ticket with same Summary name that are open. Link the duplciate ticket and close. def issueSummary = issue.fields.summary logger.info('issue summary is : ' + issueSummary) def jqlS…

---

## [Search last comment for a string?](https://forum.library.adaptavist.com/t/search-last-comment-for-a-string/418)

<div class="topic-metadata">

**Author:** [@wstewart3](https://forum.library.adaptavist.com/u/wstewart3)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 5:12pm UTC](https://forum.library.adaptavist.com/t/search-last-comment-for-a-string/418 "2024-01-10T17:12:18Z")

</div>

I have some automation that is being triggered by JQL. However I only want it to trigger if the LAST comment on the issue contains a string (Lets say “test”). Is there a way to do this with scriptrunner? I found: htt…

---

## [Needs help to make my script work](https://forum.library.adaptavist.com/t/needs-help-to-make-my-script-work/415)

<div class="topic-metadata">

**Author:** [@Zaldy](https://forum.library.adaptavist.com/u/Zaldy)\
**Replies:** 10\
**Last updated:** [January 9, 2024, 11:07pm UTC](https://forum.library.adaptavist.com/t/needs-help-to-make-my-script-work/415 "2024-01-09T23:07:22Z")

</div>

Hi everyone. I hope some could help with my issue on the script below. Every time I do a test run, the validation condition always end up on the last ELSE block; and it is not process the rest of the code – i.e., the up…

---

## [How do I change field's rendering method via script?](https://forum.library.adaptavist.com/t/how-do-i-change-fields-rendering-method-via-script/413)

<div class="topic-metadata">

**Author:** [@t0m1slav](https://forum.library.adaptavist.com/u/t0m1slav)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 7:59pm UTC](https://forum.library.adaptavist.com/t/how-do-i-change-fields-rendering-method-via-script/413 "2023-12-14T19:59:59Z")

</div>

Hello, How do I change field’s rendering method via script? I tried everything, and there is not much examples for this. I have a field that is used in multiple field configurations. I’d like to change its rendering m…

---

## [How do I update 2 custom Jira fields at a time?](https://forum.library.adaptavist.com/t/how-do-i-update-2-custom-jira-fields-at-a-time/408)

<div class="topic-metadata">

**Author:** [@Zaldy](https://forum.library.adaptavist.com/u/Zaldy)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 2:36am UTC](https://forum.library.adaptavist.com/t/how-do-i-update-2-custom-jira-fields-at-a-time/408 "2023-12-14T02:36:43Z")

</div>

Hi all, Thanks for reading my query. And hope someone could help me with my trivial question… I got 3 custom fields: Issue category - which is a cascading field (customfield\_10220) Functional area - single picklist (…

---

## [Code Reuse for Cloud](https://forum.library.adaptavist.com/t/code-reuse-for-cloud/407)

<div class="topic-metadata">

**Author:** [@kcwong](https://forum.library.adaptavist.com/u/kcwong)\
**Replies:** 1\
**Last updated:** [December 8, 2023, 7:53am UTC](https://forum.library.adaptavist.com/t/code-reuse-for-cloud/407 "2023-12-08T07:53:00Z")

</div>

For Server/Data Center, there’s the Script Editor menu to write scripts for reuse. In Cloud, there’s no more Script Editor. How can I achieve the same effect? In particular, I want paging to be handled transparently. If…

---

## [Round Robin Issue Assignment (ScriptRunner for JIRA Cloud)](https://forum.library.adaptavist.com/t/round-robin-issue-assignment-scriptrunner-for-jira-cloud/404)

<div class="topic-metadata">

**Author:** [@Commcast](https://forum.library.adaptavist.com/u/Commcast)\
**Replies:** 0\
**Last updated:** [December 6, 2023, 5:30am UTC](https://forum.library.adaptavist.com/t/round-robin-issue-assignment-scriptrunner-for-jira-cloud/404 "2023-12-06T05:30:10Z")

</div>

Overview Assign issues to the members of a project in a ‘round robin’ manner. This script automatically assigns the next user in the list to each newly created issue. Good to Know This script has been designed to wor…

---

## [Need help on copying custom field to another custom field](https://forum.library.adaptavist.com/t/need-help-on-copying-custom-field-to-another-custom-field/399)

<div class="topic-metadata">

**Author:** [@Zaldy](https://forum.library.adaptavist.com/u/Zaldy)\
**Replies:** 9\
**Last updated:** [November 24, 2023, 8:23am UTC](https://forum.library.adaptavist.com/t/need-help-on-copying-custom-field-to-another-custom-field/399 "2023-11-24T08:23:37Z")

</div>

Hi all, My first post here. Being new to ScriptRunner, I wanted to create couple of scripts as replacement for our Jira Service Management automation rule. The first requirement is: One create or edit, update the Appr…

---

## [How to Create a Jira Workflow Condition that only allows the transition if there has been a pull request](https://forum.library.adaptavist.com/t/how-to-create-a-jira-workflow-condition-that-only-allows-the-transition-if-there-has-been-a-pull-request/388)

<div class="topic-metadata">

**Author:** [@Cash](https://forum.library.adaptavist.com/u/Cash)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 2:26pm UTC](https://forum.library.adaptavist.com/t/how-to-create-a-jira-workflow-condition-that-only-allows-the-transition-if-there-has-been-a-pull-request/388 "2023-10-12T14:26:46Z")

</div>

In Jira Cloud, How can I Create a Jira Workflow Condition using a ScriptRunner Script as the condition in a workflow transition that only allows the transition if there has been a pull request?

---

## [Jira Automation firing Scriptrunner script action](https://forum.library.adaptavist.com/t/jira-automation-firing-scriptrunner-script-action/366)

<div class="topic-metadata">

**Author:** [@Marcus](https://forum.library.adaptavist.com/u/Marcus)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 6:24am UTC](https://forum.library.adaptavist.com/t/jira-automation-firing-scriptrunner-script-action/366 "2023-08-28T06:24:28Z")

</div>

Hey all, It’s probably just something ■■■■■■ thing I am missing or overseeing. I have jira automation watching for a fieldchange which then fires an Scriptrunner script which should fill a radiobuttons customfield base…

[Next page](https://forum.library.adaptavist.com/tag/jira/12.md?match_all_tags=true&page=1&tags%5B%5D=jira)
