I am working on an objective-ish valuation calculation for projects (epics).
I have cusom fields that I need to sum up. I need to update a seperate field with that value.
In some cases, I need to take a string and pull the first 2 characters as a number.
I have searched youtube and the atlassian domumentation to no avail.
Are there training materials that illustrate hows to do this?
@Mark Ewart,
Can you explain the use case just a bit more? Maybe some sample values you need to sum up?
Thanks,
Kian
I have two sets of custom fields that represent the breadth of impact and the depth of impact of a project (epic). I multiply those two outputs together to get the final calculated value.
I used to do this in script runner but it overloaded my log files so I had to turn them off.
1st set of custom fields - Breadth of Impact variables:
Custom field (% Agencies)
Custom field (% Internal)
Custom field (% Marketplace)
Custom field (% Supply)
Custom field (Breadth of Impact Value)
Breadth of Impact Calculation
Custom field (% Agencies) + Custom field (% Internal) + Custom field (% Marketplace) + Custom field (% Supply) = Custom field (Breadth of Impact Value)
2nd set of custom fields - Depth of Impact variables:
Custom field (Corporate Alignment) // = if no then 0, if yes then 2.0
Custom field (Standard/Diff) //= if no then 0, if yes then 1.5
Custom field (Internal Vulnerability Reduction) //= if no then 0, if yes then 2.0
Custom field (External Vulnerability Reduction) //= if no then 0, if yes then 2.0
Custom field (Increased Revenue) //= if no then 0, if yes then 2.0
Custom Field (Initiative) //this is a string that has a two (2) digit leading number. If none then 0, else 11-(left 2 characters from the string)
Custom field (Custom field (Depth of Impact Value)
Depth of Impact Calculation:
Custom field (Corporate Alignment) + Custom field (Standard/Diff) + Custom field (Internal Vulnerability Reduction) + Custom field (External Vulnerability Reduction) + Custom field (Increased Revenue) + Custom Field (Initiative) = Custom field (Custom field (Depth of Impact Value)
Value Calculation Variables:
Custom field (Breadth of Impact Value)
Custom field (Custom field (Depth of Impact Value)
Custom field (Calculated Value)
Value Calculation:
Custom field (Breadth of Impact Value) * Custom field (Custom field (Depth of Impact Value) = Custom field (Calculated Value)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Breadth of Impact calculation is fairly easy to do.
Create a new automation with the trigger of Field Value changed and set the fields to % Agencies, ect.
Use the Edit issue fields action and set the Breadth of Impact using the smart value as follows:
{{#=}}{{issue.% Agencies}} + {{issue.% internal}} + {{issue.% Marketplace}} + {{issue.% Supply}}{{/}}
The next one you posted is a little harder to do, but still workable. Try this:
{{#=}}{{corpAlignment}} + {{standard}} + {{ivr}} + {{evr}} + {{increasedRevenue}} + {{initiative}}{{/}}
Note: Please pay careful attention to the spelling or else it won't work. It took my a few tries to get all the spelling right and it working, so try it a few times if you're having trouble with it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thank you, my company thanks you and my wife thanks as I have spent many sleepless nights working on this!
Stay tuned!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am getting this error right out of the gate:
Error while parsing additional fields. Not valid JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Put the smart value in the Breadth of Impact instead.
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.
Getting the following error:
Here is how I have the rule layed out in case I have it wrong:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Ewart,
You missed the very first step. You first need to define the variables so that they'll be available when you perform your calculation at the very bottom. So first define all the variables you want to use, and then use the If/Else blocks to set the values if they are populated.
Does that make sense?
Thanks!
Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sick of me yet!?
It does make sense. Thank you! Sorry for being such a newb! :)
I fixed that error and now I am getting:
Error rendering smart-values when executing this rule:Unknown operator or function: ADKOM: 1 - ADKOM/Agencies + 0 + 1.5 + 2 + 0 + 0 + 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Ewart,
I don't see where Adcom/Agencies is coming from. Can you tell me please? Is that the initative the ticket is tied to?
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.
Can you show how you defined the variables for that? It appears that its pulling the whole value. Given that it doesn't appear to have any numbers at the front, it should not be setting that as the value.
What is your initial value set to for the Initiative variable? It should be set to 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the Variable in the If Block:
The initial value is set to 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your smart value setting is wrong.
Try this:
{{issue.initiative.match("([0-9]{2}).*")}}
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.
I'm sorry that it isn't working. Keep playing around with it! I'm sure you'll be able to get it soon!
Thanks,
Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome effort @Kian Stack Mumo Systems
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.
Hi Mark - You can use Automation For Jira to take a stab at that.
You might need multiple number type custom fields though if you need to convert a string to another number first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.