Forums

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

JIRA Rest API and Git window

Allgaier
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!
September 28, 2020

Hello.

 

i am a really beginner at that topic and i had need only for authentication a long time.

I plan to have when I made a build, that I have all releated JIRA tickets and some fields from JIRA.

What would i like to have from the JIRA

 

ID

type of ticket

Summary

status of the ticket

fix versions

Ticket due date

FLMT-1246

Bug

blabla1

in work

release 1

11-2-2020

FLMT-573

task

blabla1sass

resove

release 2

11-4-2020

FLMT-656

Sub-task

blabla1bbb

closed

release 1.1

11-5-2020

 

That is what I would like to have between commit 1 and commit B:

What would i like to have:
ID type of ticket description status of the ticket fix versions due date
FLMT-1246 Bug blabla1 in work release 1 11-2-2020
FLMT-573 task blablaba resove release 1.1 11-4-2020
FLMT-656 Sub-task blabla closed release 1 11-1-2020

 

In the moment I have that:

git log --no-merges --pretty=format:%s 85e320b..4e5511c | grep "FLMT-[[:digit:]]" | gawk '{print gensub(/.*(FLMT)-([0-9]{1,5}).*/, "\\1-\\2", "g")}' | sort -u

I get a list of JIRA tickets:
FLMT-1246
FLMT-573
FLMT-656

and also that i get some infos from API of JIRA:Unbenannt.PNG

curl -D -u so62rt:PasswordWindows# -X GET -H "Content-Type: application/json" https://jind.com/aljira/rest/api/2/issue/FLMT-1246

 

But what is not clear for me, how can I get add some infos from the ticket in that form.

FLMT-1246 Bug blabla1 in work release 1 11-2-2020??

Do someone knows that?

 

The next step is also not clear for me, would be who can use the search of the commit1 .. commit2 and combine it with the right output.   

ID type of ticket description status of the ticket fix versions due date
FLMT-1246 Bug blabla1 in work release 1 11-2-2020
FLMT-573 task blablaba resove release 1.1 11-4-2020
FLMT-656 Sub-task blabla closed release 1 11-1-2020

 

Thanks a lot for your help.

I hope one of you have an idea about that, i have no idea!

Johannes

 

 

0 answers

Suggest an answer

Log in or Sign up to answer