History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2642
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: max1234
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Multiple Comment Transformer

Created: 23/Feb/16 09:02 PM   Updated: 02/Mar/16 12:03 AM
Component/s: None
Affects Version/s: 6.1.2
Fix Version/s: 6.1.6

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Hi Ameet,

Yes, there is no way to access the info. Please file an improvement to our issue tracker. We'll change to allow add multiple comment transformer.

Best regards
Steve


On Feb 23, 2016, at 8:54 AM, Robin Shine <robin@pmease.com> wrote:

Ameet,

There is no way to access that info right now I guess.

Steve,

Any possibility to make $1, $2, ... as properties of some object so that the groovy script can access it?

Regards
Robin

________________________________________
From: "Shah, Ameet" <Ameet.Shah@pimco.com>
To: "Robin Shine (robin@pmease.com)" <robin@pmease.com>
Sent: Tuesday, February 23, 2016 8:23 AM
Subject: Question on Comments Transformer

Hi Robin,
 
This is our current value for comments transformer:
 
<image001.png>
 
Search Pattern : ([\[,]*\s*)([aA][rR][tT][fF])(\d{4,})(\s*[\],]+)
 
Replace Pattern : <a href='http://pimcocm/sf/go/artf$3' target='_blank'><b><u><font color='blue'>$1$2$3$4</font></u></b></a>
 
As we now can have JIRA as well as Teamforge artifacts, was thinking of updating Search Pattern to:
 
Search Pattern : ([\[,]*\s*)(artf\d{4,}|[A-Z]+-\d+)(\s*[\],]+)
 
However, replace pattern would now need to be a groovy script as if $2.contains("artf") then need to use replace pattern for teamforge, else will need to use replace pattern for JIRA. Issue is, I cant seem to make use of $1,$2 or $3 in groovy script.
 
How can I access the matched results from the regex above to check $2 value and then proceed and use $1, $2 and $3.
 
Thank you,
Ameet Shah


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.