Forums

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

Display a button on the pull request overview page using Scriptrunner

devops_account April 2, 2020

Because it's not a valid section location - bitbucket.pull-request.nav.diff, the key couldn't show. After I use Web Item: bitbucket.pull-request.nav, the label shows correctly.

So my question is - Can the scriptrunner use Client Web Item if I want to add the label to the pull request trigger more button as follows:

Screen Shot 2020-04-02 at 5.44.48 PM.png

 

Thank you for the help,

Jason

1 answer

1 accepted

0 votes
Answer accepted
Robert Giddings _Adaptavist_
Community Champion
April 3, 2020

Hi @devops_account ,

Thank you for your question.

Yes you can add Web Items using ScriptRunner for Bitbucket to the More menu of a Pull Request in Bitbucket.

Also, you can enable the Script Fragment location finder from the Script Fragment overview page in ScriptRunner for Bitbucket.

In this case, the Script Fragment location finder identified the location as: bitbucket.pull-request.toolbar.actions

Please see screenshot below.

Example Web Item.png

Please let me know if this resolves your question? Or you require additional help?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

devops_account April 6, 2020

Hi, @Robert Giddings _Adaptavist_ 

I tried to use bitbucket.pull-request.toolbar.actions but nothing showing in the More menu dropdown. As I enabled the location finder, there was no element found under the More menu also. My bitbucket version 6.9.1 and script runner version is 5.8.0-p5.

devops_account April 6, 2020

Attached is what the location finder showing:

Screen Shot 2020-04-06 at 10.37.41 AM.png

Robert Giddings _Adaptavist_
Community Champion
April 6, 2020

Hi @devops_account ,

Please can you confirm to me the versions of Bitbucket and ScriptRunner you are using? So that I can take a closer look as to why this might be.

Kind regards,

Robert Giddings

Product Manager, ScriptRunner for Bitbucket

devops_account April 6, 2020

@Robert Giddings _Adaptavist_ My bitbucket version 6.9.1 and script runner version is 5.8.0-p5. Also updated in the above reply.

Thank you for your help!

 

Robert Giddings _Adaptavist_
Community Champion
April 6, 2020

Hi @devops_account ,

Thank you for pointing this out.

I have now raised a ticket to add support for Client Web Items; which is what is required in this case in Bitbucket 6; to ScriptRunner for Bitbucket.

Please feel free to watch the ticket here: https://productsupport.adaptavist.com/browse/SRBITB-714

Like devops_account likes this
devops_account April 7, 2020

That's great! Thank you for the help!

Suggest an answer

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

Atlassian Community Events