Hi all,
i'm trying to insert in the screen to create an issue a calculated text number.
I have two field:
I've inserted this formula:
<!-- @@Formula:
if
(issue.get(
"customfield_10401"
).equals(
"PRODUCTION"
))
return
"H.24";
-->
but it doesn't works...someone can help me to understand where I am wrong?
Thank you!
Simona
Try this
getCustomFieldValue("Your field name")
Thank you! I've solved, saving first the value in a string
<!-- @@Formula:
String choice= issue.get("customfield_12650");
if (choice.equals( "Production" )) return "";
-->
Now it works for issue that I've already created but inthe screen of create a new issue the field doesn't appear... but I have no reindexed... I don't know if is this the problem...
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Calculated fields can only show up on the view screen, not the Create, Edit, or Transition screens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right, you should reindex since the value is calculated and stored in the index at the time that the issue is indexed, eg when it is modified or transitioned, or when you do a full reindex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.