JIRA Automation Plugin, the Edit Fields screen mentions
Where can I get a full list of these variables? This looks to be very handy.
Thank you for the response.
I'm not a programmer, but I think I the two "objects" that JIRA Automation Plugin sets are issue and custom fields (basically, those are additional fields for issues, in addition to the built-in fields).
context.put("issue", issue); context.put("customfields", new CustomFieldValueRetriever(customFieldManager, issue));
Are these the places to find the built-in fields?
What is branching? Is that like $issue.reporter? In fact, what I am trying to do is get to a reporter's group, or a reporter's custom properties. I will post that question separately. Thanks again.
issue object is passed as a GenericValue (GV) and Velocity uses public Getters to derive appropriate method similar to the logic here:
issue.getSummary() -> $issue.summary issue.getPriority().getName() -> $issue.priority.name (I think, never tested)
Basically, object of type https://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/MutableIssue.html is passed, so in theory all methods starting with
get* should work.
You can use standard Velocity formatting template, look at this:
customfield_14080=#if($customfields.get(14080) == 'Urgency 5')13080#elseif($customfields.get(14080) == 'Urgency 4')13081#elseif($customfields.get(14080) == 'Urgency 3')13082#elseif($customfields.get(14080) == 'Urgency 2')13083#end
Make sure it's on one line though
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs