Forums

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

Add tag-list from gitlab branches or tags

alex_nadtoka
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!
June 10, 2022

Hi there,

I am working on Jira-Gitlab automation and one of the tasks is to add some drop-down list from gitlab tags or branches. I can define some tag and pass it via webhook to run in gitlab-ci.yml but I want to have a list of available gitlab tags in the sidebar of the issue after it's creation. 

How this can be done? Preferably without any paid plugins. But I will consider all variants. 

Regards,
Oleksandr

2 answers

0 votes
alex_nadtoka
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!
June 15, 2022

Yes, thank you very much for the reply @Andy Heinzer . Generally the last paragraph is what we use now. When user points in issue the tag or the branch for specific repository and through automation and webhook it is being passed to gitlab pipeline. 

As for the market place while I was investigating it, it is little bit different apps and have not found what was looking for. 

So something mentioned in the 2nd paragraph should be done... On ticket creation some webhook to gitlab should be passed and list of available tags or branches should be returned. That is where I stuck. Not really sure if this is possible to do in my case. 

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2022

Hi,

I understand you want to be able to see the gitlab tags as field options within Jira.  I'm not exactly sure how to best do this.  But I did come across a Marketplace app that appears to provide these kinds of git tags within Jira.  Check out Git Integration for Jira.  There might be other solutions in marketplace as well.

It might be possible to get some of these tags within Jira without using that specific app.  I was thinking that you might be able to use automation in Jira in order to either receive a webhook with this info, or to make a webhook (web request) to gitlab to obtain this info.  The problem with this approach is that Jira custom fields like a select list cannot simply have their potential values different for each issue in a project.  Instead an administrator is expected to setup the potential values in advance for a field, and then on an issue level, a user chooses what value is applied to that issue.

You might be able to circumvent this to some degree by using a different field type.  A custom field type such as labels in Jira will allow the end user to input new values into an array type field.  But this is not technically a drop-down field. So perhaps this method is not what you are looking for here.

Andy

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events