Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

2 answers

1 accepted

2 votes
Answer accepted
Robert Bailey
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 Leaders.
Nov 06, 2023 • edited

Hi @Adam Laskowski , 

 

You can add buttons to that area by setting the location to "operations-restore". For example:

image.png

Which results in this: 

image.png

 

Does this meet your needs? 

Kind regards, 

Bobby

@Robert Bailey 

wow that`s it! 

"operations-restore" is the right option and it works like a charm.

Thanks a lot! 

Like Robert Bailey likes this

@Robert Bailey Thanks, that helped me also.

I have two questions related to this:

Can I add also an icon to that button?
Background information: I want actually to show customized screens for the "Edit". Therefore I would like to remove the original "Edit" Button (on the left in your screenshot) and use my own button, but also add the icon.

Second is: can I define the position of the button? Can I move it completely to the left (instead of the original "Edit"-Button) for example?

Thanks and best regards,

Dali

Robert Bailey
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 Leaders.
Dec 06, 2023

Hi @Dalibor Gasevic , 

 

Apologies for the delayed response. I have looked into this and its not quite possible to do exactly what you need. It is possible to hide the edit button, but it is not possible to add a new button there or have the 'edit' icon available. 

The closest I could get was to the right of the 'Add comment' button. It looks like the section that contains the edit button is not available to us. 

I have attached these screenshots to show you what is possible: 

frament_edit_location.pngframent_edit_location_config.png

I hope this helps! 

Kind regards, 

Bobby

Like Dalibor Gasevic likes this

Thanks a lot for your help, Bobby!

Like Robert Bailey likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events