I followed the documentation to the latter trying to get two values of customfileds to combine it to one and I couldnt see the resulting field on the screen.
Here is the formula I used: - ( an exact copy form the documentation, just changed the filed numbers to suit )
<!-- @@Formula: (issue.get("customfield_10111") != null ? issue.get("customfield_10111") : 0) + (issue.get("customfield_10115") != null ? issue.get("customfield_10115") : 0) -->
It states in the documentation that I should look thru the (atlassian-jira.log) - logfile, which I did, and it states in there:
secure/QuickEditIssue!default.jspa [innovalog.jmcf.fields.CalculatedTextField] CalculatedTextField: error evaluating formula of field "PIR Number" of issue PIR-23:
Parse error at line 2, column 41. Encountered: return
The "PIR Number" is defined a "Calculated Text Field" .
So I thought to better start a bit simpler and tried to just get a single value, the "Summary", to display and that failed as well.
Here is what I use:
@Formula: issue.get("summary") -->
And nothing is displayed on the screen - so I look again in the logfile but there is no entry for any errors!
Thanks for all suggestions