Discussions
-
Interacting with Insight objects from Scriptrunner Server/Data-center
With the availability of Insight with all JSM Service Desk subscriptions, I'm seeing an uptick in community questions about ScriptRunner and Insight Custom fields and Insight objects. As a long-time ScriptRrunner user, when we purchased Insight last year for our new JSM implementation, I started exploring their API and…
-
Re-deploy scriptrunner web resource to users
I have some scriptrunner customizations that depend on a javascript web resource installed by a Script Fragment. I know that if I change the .js file, I have to re-load the resource record from the scriptrunner UI and to view the change in my browser, I can reload with cleared cache (open dev panel then ctrl-F5). This was…
-
Safe way to query JQL in groovy script
I've been challenged recently with some performance issues on my environment. While doing research, I came across this Kbase article and as I was reading the "Cause" section mention the use of PagerFilter.getUnlimitedFilter() I went: "Hey this looks familiar, I do this all the time!" Sure enough, I probably got that…
-
Multiple community accounts
There appears to be several of me here. I am @PD Sheehan I can also login to @PD Sheehan (tied to my personal email). I just renamed this (used to also be Peter-Dave Sheehan) to avoid confusion when tagging. But there is also @Peter-Dave Shee and @Peter-Dave Shee2 both of which show up as "Peter-Dave Sheehan" when you open…
-
Accessing ContentDraftService
Following the most excellent article by @Jonny Carter I wanted to try to manage drafts associated with bulk-changed pages. I found that the approach described only changes the published version of the page. The draft will still have the pre-bulk-update content. Then next author to come around and attempt to edit the page…
-
False unique contsraint violation error when using the Java API in groovy
I've been making some customization in our environment that involves object creation automatically from a jira post function. I'm using groovy to create the new object. But I'm getting a unique constraint violation error on an attribute that I know to have a different value than any that exist. As a test scenario, I…
-
UserSearchService not returning expected numbers
Hi all I'm a little perplexed by an issue I've been having since I tried to stop using UserManager.getAllUsers or UserManager.getAllApplicationUsers and replaced it with UserSearchService as recommended by the deprecation notice. However, UserSearchService always seems to be coming up short. See this example: My…
-
Replacement for IssueIdFilter in Jira 8
I had a custom JQL function using scriptrunner that borrowed a line of code from https://community.atlassian.com/t5/Marketplace-Apps-Integrations/create-jql-function-which-executes-sql-and-puts-results-to-the/qaq-p/305703 suggested by @Jamie Echlin _ScriptRunner - The Adaptavist Group_ new ConstantScoreQuery(new…
-
Cancelling action in scriprunner escallation service
I have some conditions too complex to try to apply via JQL. Is there some attribute I could set using the "Additional issue actions" code to cancel/prevent the action from occurring as expected? Right now, I'm setting the action as "None" and I've completely coded my own action handling, but I'd prefer a simpler solution.
-
JS dialog2 show event not firing everywhere
Using Scriptrunner script fragments, I have a dialog2 being displayed from a web item in the sidebar. I have a js web resource for binding actions to the various elements on dialog. I can confirm that the resource is loaded correctly (played around with multiple context including atl.general and atl.global). But I can't…
-
Autocomplete-min.js not address by workaround instructions
This question is in reference to Atlassian Documentation: Advanced Search for issues Autocomplete doesn't submit suggestion by a click with latest Chrome This patch workaround didn't work for us... I'm wondering if it's because the AutoComplete-min.js wasn't replaced. Are the instructions complete?