# \#data-center

**URL:** https://forum.library.adaptavist.com/tag/data-center/9.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? …

---

## [Informing users that they landed in an Archived space](https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559)

<div class="topic-metadata">

**Author:** [@MoonShine](https://forum.library.adaptavist.com/u/MoonShine)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 10:50pm UTC](https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559 "2025-02-06T22:50:30Z")

</div>

Hello, I’m looking for a way to automatically change the look of spaces that are set to Archived. I have trouble finding any useful methods in Groovy for that. Any of the following would be nice =\> Change the header/f…

---

## [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

---

## [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’…

---

## [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…

---

## [Find drafts in decsendent pages with given title](https://forum.library.adaptavist.com/t/find-drafts-in-decsendent-pages-with-given-title/512)

<div class="topic-metadata">

**Author:** [@buchholz](https://forum.library.adaptavist.com/u/buchholz)\
**Replies:** 0\
**Last updated:** [September 23, 2024, 2:37pm UTC](https://forum.library.adaptavist.com/t/find-drafts-in-decsendent-pages-with-given-title/512 "2024-09-23T14:37:13Z")

</div>

As I found that there is a bug in confluence that let you fail moving a page with its descendants to another space if there are drafts :roll\_eyes: below the selected page with the same name as pages in the new space, I s…

---

## [Add value to custom field type "Issue Picker" when issue is linked Outward type "relates to"](https://forum.library.adaptavist.com/t/add-value-to-custom-field-type-issue-picker-when-issue-is-linked-outward-type-relates-to/489)

<div class="topic-metadata">

**Author:** [@camilky](https://forum.library.adaptavist.com/u/camilky)\
**Replies:** 0\
**Last updated:** [July 26, 2024, 7:59am UTC](https://forum.library.adaptavist.com/t/add-value-to-custom-field-type-issue-picker-when-issue-is-linked-outward-type-relates-to/489 "2024-07-26T07:59:00Z")

</div>

I have a problem with following script, because automation running properly as well without any changes in custom field type “IssuePicker”. import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jir…

---

## [ScriptRunner for Confluence - Generate List of Group Permissions for ALL Spaces](https://forum.library.adaptavist.com/t/scriptrunner-for-confluence-generate-list-of-group-permissions-for-all-spaces/461)

<div class="topic-metadata">

**Author:** [@rkent](https://forum.library.adaptavist.com/u/rkent)\
**Replies:** 5\
**Last updated:** [June 11, 2024, 9:21am UTC](https://forum.library.adaptavist.com/t/scriptrunner-for-confluence-generate-list-of-group-permissions-for-all-spaces/461 "2024-06-11T09:21:10Z")

</div>

I’m trying to find a way to generate a list that will show which spaces contain permissions for a specific user group. I DO NOT want this script to delete or modify any permissions, I just want the list. I looked on the …

---

## [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

---

## [ScriptRunner destroys Page load behind Proxy](https://forum.library.adaptavist.com/t/scriptrunner-destroys-page-load-behind-proxy/466)

<div class="topic-metadata">

**Author:** [@righter](https://forum.library.adaptavist.com/u/righter)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 8:36am UTC](https://forum.library.adaptavist.com/t/scriptrunner-destroys-page-load-behind-proxy/466 "2024-05-17T08:36:00Z")

</div>

Hi We are using an SSLVPN Web Proxy Portal from Fortigate. The page is working, but it doesn’t load completely all: We debugged it with a non SSLVPN Proxy connection and saw that we have this error: Uncaught Synta…

---

## [How to Add a List of Users to 'Watch Descendants' for a Page - ScriptRunner for Confluence](https://forum.library.adaptavist.com/t/how-to-add-a-list-of-users-to-watch-descendants-for-a-page-scriptrunner-for-confluence/460)

<div class="topic-metadata">

**Author:** [@rkent](https://forum.library.adaptavist.com/u/rkent)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 4:44pm UTC](https://forum.library.adaptavist.com/t/how-to-add-a-list-of-users-to-watch-descendants-for-a-page-scriptrunner-for-confluence/460 "2024-05-06T16:44:07Z")

</div>

I’m looking for a way to take a list of users and add them to ‘Watch Descendants’ option for a page. There are built-in scripts to add ‘watchers’ in the traditional sense, but I’m struggling to find an option to add user…

---

## [Block large files with the ability to exclude files](https://forum.library.adaptavist.com/t/block-large-files-with-the-ability-to-exclude-files/394)

<div class="topic-metadata">

**Author:** [@Sake](https://forum.library.adaptavist.com/u/Sake)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 8:11am UTC](https://forum.library.adaptavist.com/t/block-large-files-with-the-ability-to-exclude-files/394 "2024-04-09T08:11:38Z")

</div>

The following pre-hook makes it possible to block large files, but with the ability to exclude certain files with a regex. The only wish I have is to make field mandatory or when checked, it should contain a value. imp…

---

## [Transition Condition Script Returns false but Transition is Still Available](https://forum.library.adaptavist.com/t/transition-condition-script-returns-false-but-transition-is-still-available/436)

<div class="topic-metadata">

**Author:** [@candrade](https://forum.library.adaptavist.com/u/candrade)\
**Replies:** 5\
**Last updated:** [February 27, 2024, 1:10pm UTC](https://forum.library.adaptavist.com/t/transition-condition-script-returns-false-but-transition-is-still-available/436 "2024-02-27T13:10:31Z")

</div>

I added a condition to a transition using the custom script condition option \[ScriptRunner\], but the transition is still available on the issue screen. I simplified the script to just “return false” to make sure but the …

---

## [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.

---

## [Using Scripts and Script Editor with Scriptrunner](https://forum.library.adaptavist.com/t/using-scripts-and-script-editor-with-scriptrunner/425)

<div class="topic-metadata">

**Author:** [@Marcus](https://forum.library.adaptavist.com/u/Marcus)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 12:36pm UTC](https://forum.library.adaptavist.com/t/using-scripts-and-script-editor-with-scriptrunner/425 "2024-02-21T12:36:50Z")

</div>

Hey all, I am using Groovy Scripts saved to the instance machine, which I call with my Post Functions, e.g. creating sub-tasks. But I often experience that when I save changes in the web Script Editor, that comes with …

---

## [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…

---

## [Calling built in scripts from ScriptRunner?](https://forum.library.adaptavist.com/t/calling-built-in-scripts-from-scriptrunner/402)

<div class="topic-metadata">

**Author:** [@MoonShine](https://forum.library.adaptavist.com/u/MoonShine)\
**Replies:** 1\
**Last updated:** [November 27, 2023, 8:25am UTC](https://forum.library.adaptavist.com/t/calling-built-in-scripts-from-scriptrunner/402 "2023-11-27T08:25:18Z")

</div>

Hello, I have a need to automate creation of spaces and I’m looking for a way to call the built in script “Copy Space” (since I have a few different “blueprint spaces” that I would like to use for the spaces. I have not …

---

## [Setting default value on Asset custom field (multiple checkbox) using a ScriptRunner Behavior](https://forum.library.adaptavist.com/t/setting-default-value-on-asset-custom-field-multiple-checkbox-using-a-scriptrunner-behavior/400)

<div class="topic-metadata">

**Author:** [@mattd](https://forum.library.adaptavist.com/u/mattd)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 7:31pm UTC](https://forum.library.adaptavist.com/t/setting-default-value-on-asset-custom-field-multiple-checkbox-using-a-scriptrunner-behavior/400 "2023-11-22T19:31:21Z")

</div>

ScriptRunner 8.16.0 JSD 5.4.11 Hello, I can’t get an Asset custom field (multiple checkbox) to populate with default values using a ScriptRunner Behavior in JSD in Data Center. The script is basic, I’m just trying to…

---

## [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…

---

## [Tracking work logged on tickets](https://forum.library.adaptavist.com/t/tracking-work-logged-on-tickets/368)

<div class="topic-metadata">

**Author:** [@ScottCurwood](https://forum.library.adaptavist.com/u/ScottCurwood)\
**Replies:** 0\
**Last updated:** [August 24, 2023, 10:55pm UTC](https://forum.library.adaptavist.com/t/tracking-work-logged-on-tickets/368 "2023-08-24T22:55:57Z")

</div>

We are EXTREMELY novices with ScriptRunner and I’m looking for a way to pull in the work logged on Jira tickets by a group of asignee’s over a set period of time. We run Sprints but they don’t display work logged only w…

---

## [Retrieve attributes from Insight](https://forum.library.adaptavist.com/t/retrieve-attributes-from-insight/365)

<div class="topic-metadata">

**Author:** [@Marcus](https://forum.library.adaptavist.com/u/Marcus)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 9:45am UTC](https://forum.library.adaptavist.com/t/retrieve-attributes-from-insight/365 "2023-08-23T09:45:10Z")

</div>

Heya, I am working my way through https://docs.adaptavist.com/sr4js/latest/hapi/work-with-assets-insight but when I use Assets.getAttributeValues() I get MissingMethodException. My goal is to set a CustomField based on…

---

## [Issue or Project context in Custom Picker Scripted Field?](https://forum.library.adaptavist.com/t/issue-or-project-context-in-custom-picker-scripted-field/364)

<div class="topic-metadata">

**Author:** [@oaustegard](https://forum.library.adaptavist.com/u/oaustegard)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 8:24am UTC](https://forum.library.adaptavist.com/t/issue-or-project-context-in-custom-picker-scripted-field/364 "2023-08-23T08:24:35Z")

</div>

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 …

---

## [Behaviour: Validation on FieldChange - how to get originalIssue Value?](https://forum.library.adaptavist.com/t/behaviour-validation-on-fieldchange-how-to-get-originalissue-value/346)

<div class="topic-metadata">

**Author:** [@Man](https://forum.library.adaptavist.com/u/Man)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 12:41pm UTC](https://forum.library.adaptavist.com/t/behaviour-validation-on-fieldchange-how-to-get-originalissue-value/346 "2023-08-22T12:41:47Z")

</div>

Hi, I want to create a field check in a behaviour. When the field “duedate” is changed, i want to validate if the new value is in the future. If it’s not changed, it can be also in the past. As far as i know i canno…

---

## [List Project Role membership](https://forum.library.adaptavist.com/t/list-project-role-membership/360)

<div class="topic-metadata">

**Author:** [@chris.melville](https://forum.library.adaptavist.com/u/chris.melville)\
**Replies:** 0\
**Last updated:** [August 15, 2023, 10:32pm UTC](https://forum.library.adaptavist.com/t/list-project-role-membership/360 "2023-08-15T22:32:56Z")

</div>

Found an old script to do this that needed refreshing. In so doing, I discovered the “ProjectRolePicker” dynamic form field type does not work on my test instance that has an expired license, although the ProjectPicker …

---

## [Scripted Field for calculating Total Time in Current Status for Business Days](https://forum.library.adaptavist.com/t/scripted-field-for-calculating-total-time-in-current-status-for-business-days/333)

<div class="topic-metadata">

**Author:** [@Atlassian123](https://forum.library.adaptavist.com/u/Atlassian123)\
**Replies:** 6\
**Last updated:** [August 10, 2023, 1:07pm UTC](https://forum.library.adaptavist.com/t/scripted-field-for-calculating-total-time-in-current-status-for-business-days/333 "2023-08-10T13:07:20Z")

</div>

Hi I need a scripted field to get the total business days in the current status Below is a scripted field that will retrieve the Issue Total Time for all days in the Current Status. import com.atlassian.jira.component…

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