Add support for macros

Issue #792 new
Marcelo Mrack created an issue

Hi Fidel,

How about to create support for macros in JWT ?

For example:

define getNeedText(p1,p2) as "Return a value of 'p2' field contained in a 'p1' NFeed field" {
   first(fieldValue(%{p2},issueKeysToIssueList(first(findPattern(%{p1},"[0-9]+")))))
}

In this case an optional as keyword can be used to generate an auto-documenation (i.e. Tooltips over macros).

And, as cake cherry, following the Atlassian Translation Website philosophy, a common place to publish and use macros around the world :D

Comments (5)

  1. Fidel Castro Armario repo owner

    Hi @mmrack,

    Thanks for your suggestion. I will consider it seriously.

    In relation to the documentation, since version 2.2.42 JWT supports single line comments. Example:

    #Checks whether duedate is higher than current date-time.
    {00057} < {00012}
    
  2. Log in to comment