The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Formula synstax for Calculated text field (innovalog)

summitmedia-uk
February 5, 2014

I'm asking for help with syntax.

I'm not developer so I don't know how should look like syntax for following:

One text field has value "apple"

Second text field has value "orange" =

Calculated field result should be "fruits"

Any idea?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
summitmedia-uk
February 6, 2014

With colleague we've managed to formulate the syntax:

(this is only excerpt)

<!-- @@Formula:
String impact = issue.get("customfield_12345");
String urgency = issue.get("customfield_12346");

if (impact.equals( "Orange" ))  {
if (urgency.equals( "Apple" )) return "fruits"; }

return "err";

-->
</div>