On Mon, Apr 28, 2014 at 02:32:16PM -0700, Stephan Hradek wrote:
Just as a side note: This template would have done it without a macro:

\define jira(number) <a
href="https://mycompany.atlassian.net/browse/$number$";>$number$</a>

<$list filter="[is[current]!field:ticket[]]"><$macrocall $name="jira"
number={{!!ticket}}/></$list><$list filter="[title{!!title}is[missing]]
[title{!!title}!has[ticket]]"><$macrocall $name="jira"
number={{!!title}}/></$list>

Used like this:

{{||jira}} -> if you want the ticket field to be used.
{{IOS-330||jira}} -> if you want IOS-330 to be used.

This is great. However, not even in my wildest dreams would I ever have
thought to use that style. I'm very comfortable with JavaScript. I am so
not even close to understanding the TiddlyWiki magick code.

Thank you for your example. I think I will need many hours of deep
meditation to gain enlightenment on it.

P.S. You win major geek points in my book.

--
PGP Key: DE767C8A / FA9F 1400 8BA5 A847 B097 7C06 EBD9 9C92 DE76 7C8A
http://tritarget.org/key

Attachment: pgpWyZmdaSF1V.pgp
Description: PGP signature

Reply via email to