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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,781 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot