Forums

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

How to add an html element to bitbucket server create pull request page.

Ethan Wortzman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2018

For starters, I'm super new to plugin development, so sorry if some of this is well documented and I just can't find it.

I'm trying to add a note to the create pull request page that tells users about suggested formats for naming pull requests.  I want to add the note right under the title field, above the description field, like this:

PR.png

 

I can't find any information anywhere on how to actually do this. I'm assuming I need to add a module of type "web-panel" or "web-resource" or something. But I can't find answers to several questions:

  1. what type of module do I need to add?
  2. how do I configure that I want to insert a div after the title field, before the description field? I'm semi-familiar with the "location" field for web-panels, but I can't figure out what value to use. 

I've fooled around with just loading javascript and just having the js search for the element and adding my note that way, but I couldn't get that to work at all.  acom.atlassian.jira:jira-core` provides a variable `AJS` that includes jquery, but that doesn't seem to be the case for any of the bitbucket artifacts (at least that I've found).

Again, forgive me if any of these questions are stupid or well documented. I've tried searching and had trouble finding anything useful.

1 answer

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2018

Hi Ethan! For this kind of questions you might receive faster responses if you submit them to our Developer Community.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events