How to use Misc Custom Field Plugin

Naama Lev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2014

Hi All, 

I am trying to use Misc Custom field plugin, 

I am using the 'Calculated Number Field'. I would like to sum to list fields values (with the option 1,2,3)

and than to have a condition for the value I receive.

I have tried with a basic configuration - bet even that not working for me

<!-- @@Formula:
value = issue.get("customfield_11104" + issue.get("customfield_11108"
return value -->

Can you please advise what am I doing wrong?

Thanks

Naama

 

 

 

 

3 answers

1 accepted

0 votes
Answer accepted
Maud Schlich November 3, 2014

Hei Naama,

in your first attempt you ommitted several ) and semicolons at the end. Please try this:

<!-- @@Formula:

if (issue.get("customfield_11104")==null) return null;

if (issue.get("customfield_11108")==null) return null;

value = issue.get("customfield_11104") + issue.get("customfield_11108");

return value;

  -->

I did not use an or conjuction as you probably may want to test to different values (and not only null) as well.

Greetings

 Maud

0 votes
Naama Lev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2014

Hi Maud, 

Thanks for your replay, 

I manage to figure it out in the end smile

Can you please let me know if for Text calculated field I can add an icon?

Thanks

Naama

0 votes
Naama Lev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2014

Hello All, 

Even if I put a very simple sentence such as 

<!-- @@Formula:
return issue.get("customfield_11104").intValue(); -->

I do not get any value.

 

Can you please advise what am I doing Wrong?

Thanks

Naama

Suggest an answer

Log in or Sign up to answer