How to use Misc Custom Field Plugin

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

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

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

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

45 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you