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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add a custom Button to the Release page?

Hi there.

Maybe somebody could advise how we can add a Custom button to the Release page?

See the screenshot where we want to do it.

Seems like it's impossible to make some changes to the Release page.

I've tried to find a Web Fragment UI via Web Fragment Finder addon and when I try to open a page with one of our Release this Addon shows me an error.

2020-12-25_073136.jpg

 

1 answer

0 votes

Hi @Alexander 

You can add a web panel at this location.

location='atl.jira.releasereport.top.right.panels'

I hope it helps.

Ravi

Hi @Ravi Sagar _Adaptavist_ 

Tried to add a web panel but received an error below.

Maybe you know how to fix it?

Error

Required resource with name 'view' does not exist.

Also, I don't understand what I should do step-by-step... 

At first, create a web panel and then create a web item (button) or what? And how? Usinf Script Runner?

Please, advise.

Hi @Alexander 

If you have ScriptRunner then you can use Script Fragments to insert a web panel at that location.

Check this screenshot.

Screenshot 2020-12-28 at 10.12.15.pngNow what you want to do when someone clicks on it is upto you to configure. I shared the link above where you can find examples.

You will also find few more examples in our script library.

Ravi

Like Alexander likes this

@Ravi Sagar _Adaptavist_ thanks for your feedback.

Difficult for me, cause I don't know Java.

Could you, please, advise how we can add a button to this web panel. After someone will click this button  he will be redirected to some link 

In the Provider class/script copy this code snippet.

writer.write("<a href=\"https://www.ravisagar.in\" class=\" aui-button aui-button-primary \" style=\" margin-right: 2px;\" >My site</a>")

This will create a link and make it look like a button and it will look exactly like the release button. Change the link and the link text to suit your needs.

It will look like this.

Screenshot 2020-12-28 at 13.33.38.png

I hope it helps.

Ravi

Like Alexander likes this

@Ravi Sagar _Adaptavist_ you are awesome!

What do you think, can we trigger a webhook via this button?

We have a webhook that runs while we click on the Release button and choose data. Then webhook runs a script that creates a Change Request in our Service Desk system.

Like Ravi Sagar _Adaptavist_ likes this

Yes you can. For sending the data I believe you need to do a bit more in your script than just the url.

Also take a look at Custom REST End point that you can create using ScriptRunner.

Ravi

Seems like we should add the same functional like a Release button have: click the button => Choose date => Release status will change to Released

@Ravi Sagar _Adaptavist_ Hello! Can we add the same function like a Release button have: click the button => Choose date => Release status will change to Released? What do you think?

Our Webhook post script checks the releases with a Released status. So, at first we need to change a status of release via our custom button

UPDATE

We need to change status via our custom button to "somestatus" => then Webhook running a script

Apart from the links I shared above you will find plenty of examples in the script library to transition an issue.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you