Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner Fragments & Jira 9 - Create Button next to Workflow Dropdown

Adam Laskowski
November 6, 2023

Hi everyone,

in Jira 9+ all Transition-Buttons are now inside a Workflow-Dropdown. 

image.png

We don´t really mind this but in some cases/projects we really want to separate a button and put it right next to the Workflow-Dropdown or the Assign-Button.

On top of that we like to create a second button which do something else like redirect to a link. This should be possible with Scriptrunner Fragments but i wasn't able to create something like this. I kinda have now two questions regarding buttons:

1 - Is there a solution to set a transition-Button next to the transistion-dropdown? Maybe using fragments? Dont really want to buy another third-party app.

2 - Using fragments is it possible to create a "custom-web-item-Button" right next to the transition-dropdown? 

In the fragments configuration there is field "What section should this go in" with dozens of options. With the option "jira.issue.tools" i was able to create a button but it is... well next to the tools buttons in the issue view. Not exactly what i want. Anyone some ideas?

Thanks!

Cheers
Adam

4 answers

1 accepted

0 votes
Answer accepted
Alex Christensen
Community Champion
November 5, 2018

There is also another JQL function from ScriptRunner that should allow you to do this. I think the basic queries you're looking for are:

All Bugs in Open Epics

issuetype = Bug and issueFunction in issuesInEpics("resolution = Unresolved")

 All Bugs in Closed Epics

issuetype = Bug and issueFunction in issuesInEpics("resolution != Unresolved")
3 votes
Thomas Deiler
Community Champion
November 3, 2018

Dear @Yolanda Repetto-Logan,

before you use a sledge-hammer to crack a nut, try another plugin called JQL Search Extensions. The query will look like this:

issue in linkedBy("relates to", "project = XXX")

So long

Thomas

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 4, 2018

Hello,

You could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

Your JQL query would look like this

key in issueInEpics("status != \"In Progress\"")
0 votes
Mesut Yilmazyildirim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 3, 2018

If you have script runner plugin you can use issueFunction JQL command;

But;

Epic link is majorly used to link a story .

Query can be like this for a story:

issuefunction in linkedIssuesOf("project = XXX", "is Epic of")

Bugs can be linked to an epic with 'Relate' as well.

For 'Relate'  issue link , the outward and inward description is same 'Relates to' by default.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events