On 24/10/13 14:25, Saint Germain wrote:
On 23 October 2013 18:18, Olemis Lang <[email protected]> wrote:
Is there also a change in how TracLinks work ?
Following the same idea, I would like to refer to a ticket with
product-#number instead just a global #number.

Thanks
   * product:PRE:ticket:123

  * PRE-123
There's also PRE->ticket:123 . See product_*.txt test cases [1]_

Hello,

I just made a test on the nightly build demo with the following syntax:
#459
product:@:ticket:459
@->ticket:459
@-459

The first and the second link work without problem.
The third seems to work partially (only "ticket:459" is recognized and
highlighted as link)
The fourth doesn't work.

Or maybe I am misunderstanding something about this "PRE" (I thought
that was the product prefix, which seems to be "@" for the default
product).

You are right but @ is currently a special case that doesn't always work as you found. You should be able to get around this by building the environment with --default-product-prefix=ENV with the setup script.

Another point: I thought from reading BEP-0010 that we will have a
global ID and a scope ID for each ticket.
Is the ticket number displayed in the "Active Tickets" the global ID
or the scope ID ? If it is the scope ID, how can we get the global ID
(and vice versa) ?

Regards,

We may well end up talking in ways that don't quite make sense with the definitions within BEP-0010 so I hope you can excuse us. In the terms of the definitions within that document, the global id is a unique numeric id that exists independently. As scoped ids are also unique (arguably in the case of implied scope ticket numbers too though we don't want to encourage people to use these too much) there should never really be a need for the global id to be used.

That said, it is possible to reference tickets through their global id through the /ticket/m paths which will redirect to /products/ENV/ticket/n where m and n are not guaranteed to be the same. I am not aware of a reverse mapping although it is effectively a property of the ticket itself so in principle it should be possible to get at if anyone is desperate.

Cheers,
    Gary

Reply via email to