Integration with JIRA?

800 views
Skip to first unread message

Sasa Mitrovic

unread,
Dec 21, 2014, 3:55:10 PM12/21/14
to go...@googlegroups.com
What would be the right way to integrate Go with JIRA?

An example would be a good explanation. Itself documentation is very bad when it comes to this part.

Jyoti Singh

unread,
Jan 16, 2015, 4:02:58 AM1/16/15
to go...@googlegroups.com
If you are looking for a way to configure Jira as a tracking tool in Go, you could look at the documentation here.

For the build pipelines of 'Go', we use github as a tracking tool, and you can do that by specifying the following in the pipeline config:

<trackingtool link="https://github.com/gocd/gocd/issues/${ID}" regex="##(\d+)" />

The regex basically tells how to parse the commit message to get the issue number, our commits are of the form "#<issue-number> - some commit message". Notice the '#' before the issue-number. If you use a different notation, specify the regex accordingly.

Something similar could be setup for you Jira instance, all you need is a url and a regex to determine the story number.
Hope that helps.

josh.k...@gmail.com

unread,
Jan 22, 2015, 2:01:47 PM1/22/15
to go...@googlegroups.com
Has anyone done this (integrated with JIRA)?  I'm really confused on how to get this to work and I don't see any logs, etc. to show me whether it's working or not.

srinivas upadhya

unread,
Jan 22, 2015, 11:51:45 PM1/22/15
to go...@googlegroups.com

Below is screenshot on how Go's build-linux pipeline (username: 'view' & password: 'password') is setup to integrate with GitHub.

The build-cause pop-up the #842 becomes link to GitHub issue number 842. Like below:


josh.k...@gmail.com

unread,
Jan 23, 2015, 9:32:43 AM1/23/15
to go...@googlegroups.com
Thanks Srinivas,

However, both my questions still remain:

1) I can't seem to get this to work in for JIRA
2) How do I debug it?  Are there logs somewhere for what it parsed?  Are there logs for where it tried to upload?  I have too many variables (regex parsing, uri+pattern concat, authentication, ...) and no way of knowing which failed.

Jyoti Singh

unread,
Jan 24, 2015, 6:50:14 AM1/24/15
to go...@googlegroups.com
When you say this does not work, I believe you mean to say that the links do not appear in the 'changes' popup. If you mean something else, please elaborate.

Could you share the regex and url have you configured for the tracking tool? You may mask the credentials and domain name. Also, what does a sample commit message look like?
By the way, you do not have to provide the credentials in the tracking tool url in Go.

  Are there logs for where it tried to upload
Not sure what you mean by this.

Cheers,
Jyoti

Subhash Gajare

unread,
Sep 2, 2016, 10:19:24 AM9/2/16
to go-cd

I am also looking for a way to integrate JIRA with goCD. On failure it should connect to JIRA and create a new JIRA ticket.
Any way to do this.

Aravind SV

unread,
Sep 6, 2016, 1:38:28 AM9/6/16
to go...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages