Modify

Opened 8 years ago

#13058 new enhancement

Links that contain fom values don't work

Reported by: marc.waeckerlin@… Owned by:
Priority: normal Component: TracFormsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I would like to generate a link that consists of a given text plus the value of a field.

My background: There are automate test cases in Jenkins, and a release ticket in trac eith several checkboxes for things to be done durin a release. One pont is to run the tests and to reference to the number of the test run in jenkins. Then I would like to generate a link that leads directly to the test result.

This is the relevant part in trac:

{{{
#!TracForm
#! subcontext integration
[tf.input:itstnum 'num' 4] [https://my.jenkins.net/job/my-tests/[tf.value:itstnum] Test Results]
}}}

If I enter e.g. number 74, it should generate a link: <a href="https://my.jenkins.net/job/my-tests/74"><span class="icon">​</span>Test Results</a>

But it generates: <a class="ext-link" href="https://dev0004.int.swisssign.net/jenkins/job/websites.wt/[tf.value:itstnum"><span class="icon">​</span>https://dev0004.int.swisssign.net/jenkins/job/websites.wt/</a>

I also tried to use the simpler form https://my.jenkins.net/job/my-tests/[tf.value:itstnum] without the additional square-braces, but it does not work either.

Request:

  1. Is there a another way to get what I want?
  2. If not, could you improve the parsing?

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.