Version Control / Issue Navigation

What is the Issue Navigation tab used for in the Version Control dialog?

The help says:
"Use this tab to create a list of issue patterns and navigation links to
the bug trackers."

Where would these links show up?

Cory

0
9 comments
Avatar
Permanently deleted user

I think I figured this one out.

I set the URL to our JIRA instance and now when the regular expression
is matched in a commit comment in our subversion history view, I get a
link that I can click on to open the browser to the correct JIRA page.

For example, our issue numbers look something like PUB-1234. The regular
expression is set to PUB\-\d+. When I commit something, if I include the
bug number in the comment (e.g. "this fixes PUB-123"), I will get a link
to our JIRA instance whenever the regular expression is matched.

This is pretty cool.

Cory

Cory wrote:

What is the Issue Navigation tab used for in the Version Control dialog?

The help says:
"Use this tab to create a list of issue patterns and navigation links to
the bug trackers."

Where would these links show up?

Cory

0
Avatar
Permanently deleted user

Yes it's pretty cool if one knows how to use it in the first place. And that is my problem.

We have Bugzilla. So far I have managed to make usable Issue Id regex, e.g. "#\d{1,5}". You prefix the bugzilla number with # when adding commit comment. Works if you have max five digit issue numbers.

But I can't figure out the Issue link. It says replacement expression. What the hell is replacement expression? No example anywhere to be found. In Help they say it's "regular expression that describes the navigation link to an issue". How that should look like?

My Issue link right now is:
http://bugzilla/show_bug.cgi?id=

But the id is not appended to the end. Could anybody help me please?

0
Avatar
Permanently deleted user

Hello Steve,

My Issue link right now is:
http://bugzilla/show_bug.cgi?id=
But the id is not appended to the end. Could anybody help me please?


It's a regular replacement regexp. You should use:
http://bugzilla/show_bug.cgi?id=$0

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

I agree this could be a lot clearer - e.g. what's with the 'example' in the 'Add Issue Navigation Link', that has and 'Issue ID' field and an 'Issue link' field, but nothing in them ?

0
Avatar
Permanently deleted user

Thanks Dmitry, this helps.

I would like to point out though that in the IDEA Help even that there is "Regular Expression Syntax Reference" page there is nothing about replacement expressions.

0
Avatar
Permanently deleted user

OK, I was too hasty. The id is appended to the link now but it is not helpful because the id contains "#" prefix. But in the link there must be only the number itself without prefix.

Summary:
I define Bugzilla ids in comments as #12345. The prefix is needed because otherwise any number in comment would be misinterpreted!
Corresponding Issue ID is #\d{1,4}
Current Issue link is http://bugzilla/show_bug.cgi?id=$0
Resulting issue link is http://bugzilla/show_bug.cgi?id=#12345 which is incorrect. I need to remove the "#". How can I do that?

0
Avatar
Permanently deleted user

Finally found it. I have to use regex groups.

The Issue ID must be: #(\d{1,5})
The Issue link is then: http://bugzilla/show_bug.cgi?id=$1

Now the "#" is removed.

0
Avatar
Permanently deleted user


Dave Lorde wrote:

I agree this could be a lot clearer - e.g. what's with the 'example'
in the 'Add Issue Navigation Link', that has and 'Issue ID' field and
an 'Issue link' field, but nothing in them ?


That is where you can test if it works. You type an Issue ID e.g. #4534
and in the Issue link will contain the link that is generated from that
Issue ID.

Bas

0
Avatar
Permanently deleted user

That is where you can test if it works.


Ah - thanks Bas.

ISTM 'Example' is rather a misleading caption there - it it had been 'Test' or similar, I might have understood. 'Example' to me means something that shows how to do something, not a test of something...

0

Please sign in to leave a comment.