Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to make calculation between secure fields ?

Deleted user March 26, 2021

good morning, has anyone of you ever used the secure fields plugin, from coresoft labs, and can you tell me if it is possible to use them in script runner behavior to make a "calculation" between the values of these fields? Unfortunately these fields are not visible from automation for Jira.

Budget - Final Budget = Remaining Budget

(all three are secure custom fields)

when Budget changes (for example user modifying issue in Edit)
or Final Budget

Remaining Budget should report the subtraction update of the first two.

 

3 answers

1 vote
Lih Yao Tiong
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.
April 1, 2021

Hi @[deleted] ,

If you do not mind that "Remaining Budget" is not a secure custom field. I would say that  ScriptRunner: Scripted Field might be the solution for you.

To calculate a number based on other fields, please refer to the document: https://scriptrunner.adaptavist.com/latest/jira/scripted-fields.html#_examples

I'm not using CoreSoft plug-ins, so I'm not sure if it works for ScriptRunner, but the Scripted field should work fine if there are Jira defaults custom fields.

I hope it helps :)

1 vote
Bill Sheboy
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.
March 26, 2021

Hi @[deleted] 

My disclaimer: I am using Cloud, and not using either ScriptRunner or the CoreSoft plug-ins.

Noting your comment about automation for Jira (A4J), sometimes the field's smart value has a different name than in the UX.  You could try this how-to article and learn if the fields are supported in A4J under custom field names:

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

 

Best regards,

Bill

0 votes
Deleted user April 1, 2021

@Lih Yao Tiong  

thanks for your help, the three fields are all secure custom fields, I will try anyway to follow your suggestions, and hopefully solve. I'm waiting for Atlassian to consider the opportunity to make custom fields "visible for everyone in the same way and from any plugin", so that I can comfortably work with cases like mine that are practically "the daily work" in any medium-large business context.

Lih Yao Tiong
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.
April 1, 2021

Sure, just let me know if there's any update. :D

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.10
TAGS
AUG Leaders

Atlassian Community Events