I am trying to populate a text field based on issue type:
<!-- @@Formula:
String s = issue.get("issuetype").getName();
if (s == "Other") return "This is of issue type other";
-->
s is getting populated with "Other", however, when I compare it in if statement I do not see the output.
Thanks!!
You can cast the value, that should work
if (s.equals("Change Relationship")) return (int)issue.get("customfield_11501");
Try
s.equals("Other")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup, that worked and it's Java implementation. Things makes so much more sense now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
I am trying to calculate a number field but I do not want to display the decimal point. Is there a way to convert a field value to whole number?
This is giving no result. customfield_11501 value is 51 and it displays 51.0 when I display it as it is.
if (s.equals("Change Relationship"))
{
value=issue.get("customfield_11501");
return numberTool.format(value);
}
Thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.