Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Custom field. Select bitbucket branches from drop down list when create issue Edited

Hello,

Is there a way or script to list bitbucket branch into a dropdown list that related to a Project Key.

The plan is that when create Jira Issue bug, we can select a branch from the list and it will appear in detail section. 

Product used is JIRA Server & Bitbucket Server.

Thanks in advance.

1 answer

@Farhan Taib 
Let us know if you have solution for this. We are looking for a similar functionality.

Hello @Prashant Bagewadi 

You can accomplish this with the app Elements Connect (previously called nFeed).
(Disclaimer: I am the product manager of Elements Connect, I work for Elements)

Here is how:

  • Create an Application link between Jira and Bitbucket (preferred) OR create an Elements Connect datasource of type URL that point to Bitbucket REST API - Read the doc
  • Create an Elements Connect field of type "Live text" or "Snapshot text" (see the difference)
  • Configure the field, select the "Bitbucket" datasource
  • Field configuration is:
    • Query:
      rest/api/1.0/projects/PROJECT-KEY/repos/REPO-NAME/branches?filterText=$userInput
      where  PROJECT-KEY is the bitbucket project key and REPO-NAME is the bitbucket repository nam
    • Root element:
      $.values
    • 1 json column:
      • Name: displayId - JSON Path: $.displayId
    • Key: 0 (if you selected "Live text")
    • Editor: Autocomplete (can be any type expect "Read only")
    • Template:
      {0}

This is the configuration of a bitbucket repository picker. The text typed by the user in the autocomplete field is used to filter the query. ($userInput variable).

You can adapt this configuration to your needs and explore the Bitbucket configuration here: https://docs.atlassian.com/bitbucket-server/rest/7.3.1/bitbucket-rest.html?#idp200

If you have another question about Elements Connect, please contact our support team.

Hope it helps

Regards,
Christophe

Lead Product Manager @ Elements

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

41 views 0 2
Read article

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