Project

General

Profile

custom field - parse value to different URLS

Added by Peter Prinzen about 8 years ago

Hi,

I'm try the following: my source code control (perforce) sends / updates a custom field with redmine to the actual submit number. Looks on the web-interface like this

p4fix: 23 25

Where "p4fix" is a custom text field. I can use "Link values to URL" to add to a single entry my URL: "http://myperforce/swarm/changes/23" when the entry of "Link values to URL"="http://myperforce/swarm/changes/%value%".

But what to do when there are more submits, and this list is a text string like "23 25" (divided by spaces)? The redmine help suggests something like "%m1%, m2... => capture groups matches of the custom field regexp if defined", but how can I use this to get a unique URL for each number?

Any ideas?

Thanks a lot

Peter

PS: asked same on stack-overflow, but I guess, this forum is the better place to ask ...