Questions tagged [scriptrunner-for-jira]

ScriptRunner for Jira is a marketplace plugin for Jira by the vendor Adaptavist. The plugin allows administrators resp. users to customise the behavior of Jira for specific interfaces by using provided scripts or implementing own scripts with Groovy.

50 questions
9
votes
1 answer

JIRA JQL: coloring cards by blocked status

I'm trying to use the "Card colors" feature of JIRA Agile, plus the ScriptRunner plugin, to color blocked cards on a JIRA agile board. My definition of "blocked" is: ticket has a value for the "Blocked" field or is linked to an unresolved ticket in…
yolfer
  • 95
  • 1
  • 8
1
vote
1 answer

Get current user for database lookup in scriptrunner not working

validation select jiraaccount,displayname from mcigeneralname where jiraaccount = ? search sql select jiraaccount,displayname from mcigeneralname where lower(jiraaccount) like lower(?) || '%' configuration script : import…
1
vote
1 answer

Scriptrunner Create issue and assign to existing epic

While creating a new issue using scriptrunner, I would like to assign it an existing epic. it seems the issue.setCustomFieldValue(epicLinkCustomField) is not working. any help would be greatly appreciated. everything else works fine, im able to set…
Mikeshift
  • 45
  • 5
1
vote
1 answer

Bitbucket Server ScriptRunner call to external Rest API in MergeCheck Permissions?

I am new to groovy and bitbucket server script runner and currently do not have admin access to our server. I am attempting to write a simple MergeCheck for bitbucket server that will call to an external API and check a value in the JSON response.…
1
vote
0 answers

Cannot create a fragment with a corresponding REST endpoint in Jira

I am trying to create a custom web item that navigates to a link when clicking on it. Here is a screenshot of the way in which I have created the custom web item:  I have also defined a REST endpoint as you can see in the following…
1
vote
1 answer

How to to get the string value of custom field (single select) using listener in jira

I am a new learner of Jira and I have no experience with Script runner, And I trying to Write a script in ScriptRunner that gets initiated every time a user selects the “other” option. the "other" is one of four options which I added it under custom…
Asma
  • 11
  • 2
1
vote
0 answers

how to check if an issue has been exalated in Jira Scriptrunner, [Static type checking] - The variable [eventTypeManager] is undeclared

I would like to write some code to check if an event has been exalated in scriptrunner, I am using the following code but it seems that I have a compilation error: I am getting the error stating that [Static type checking] - The variable…
0
votes
1 answer

How to throw an exception because the issue has no components in ScriptRunner postfunction

I am using Scriptrunner and I would like to throw an exception because the issue has no components as shown below:  How can I do that?  I am using the following code and I am checking if the components are empty but the error is not thrown. How can…
0
votes
1 answer

How to create a button that can be clicked and lead to the execution of a postfunction?

I would like lto create a menu item that can lead to a postfunction being executed once I click on it. I would like the menu item to look like the one shown below:  I feel like the only way to have a menu item is to have a fragment but I do not…
0
votes
0 answers

set variable current user in script runner database picker is not working

validation select jiraaccount,displayname from mcigeneralname where jiraaccount = ? search sql select jiraaccount,displayname from mcigeneralname where lower(jiraaccount) like lower(?) || '%' configuration script : import…
0
votes
0 answers

filter assignee list in jira based on organization chart

I have an organization like this: TeamA, TeamB, TeamC and TeamD each team has a leader and team member I want to filter assignees in one project based on this condition : Leaders can assign tasks to team members themselves and other leaders Also,…
0
votes
1 answer

Code using the confluence API to display statistics about the pages in 1 given space

I would like to write some code in the scriptrunner console to display some statistics about the pages in a given confluence space. I would like to display the current…
0
votes
1 answer

Retrieving 100 times more pages than what is actually available in the space

I am writing some code to print some information about a given confluence space and I would like to print some information about the pages. The problem is that the space only contains 403 pages. When I use the following code, I get around 100 000…
0
votes
1 answer

How to access the whole log for code written on scriptrunner for confluence

I am writing code on scriptrunner for confluence to retrieve some information about the pages in one space. I am logging some information but the log exceeds 300 How can I access the full log showing all of the information being a confluence…
0
votes
2 answers

Retrieve all the pages within a space with ScriptRunner

I am writing code in the script console to list the pages in a specific space called IWIKI. I am using the following code:  import com.atlassian.confluence.pages.Page import com.atlassian.confluence.pages.PageManager import…
1
2 3 4