Forums

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

Add a custom field with value dependent on the values of another default field

VT Jira September 11, 2024

I want to add a custom field with a value dependent on the values of another default field.
Example: We have the default fields for estimation like Story points and Original Estimates, Now I want to create a new custom field say QA estimates, this field is 10% of the value of the original estimates. 

I have the admin access for the product.

How I can do that?

2 answers

2 accepted

4 votes
Answer accepted
Kishan Sharma
Community Champion
September 11, 2024

Hi @VT Jira 

Welcome to the Atlassian Community!

You can use Automation for Jira for this use case. Since you have admin access, you can take below steps. 

  1. Go to Automation:

    • Navigate to Jira Settings > System > Automation rules (or Project settings if you want it at the project level).
  2. Create a New Rule:

    • Click on Create Rule.
  3. Trigger: Field Value Changed

    • Set the trigger to be when the Original Estimate field changes.
    • Choose Field Value Changed as the trigger.
    • Select Original Estimate as the field to monitor.
  4. Condition: Issue Type (Optional)

    • If you only want to apply this rule to specific issue types (like Stories), add a condition to check for the issue type.
  5. Action: Edit Issue Fields

    • Add an Action: Edit Issue Fields.
    • Select the custom field you created (e.g., QA Estimates) in the Field drop-down.
    • Set the value to be 10% of the Original Estimate. You can use smart values for this:
      {{issue.timetracking.originalEstimateSeconds}} * 0.1
  6. Save and Publish the Rule:

    • Save the rule, name it appropriately (e.g., "Populate QA Estimates"), and turn it on.
VT Jira September 11, 2024

Thank you so much @Kishan Sharma , it really helped me a lot. I was able to add the automation.

One more query here:
Like I am adding QA Estimates and PM Estimates (Two custom fields). I also want to create and update a third custom field with the sum of the QA Estimates and PM Estimates. Can we do this using the automation as I was not able to find the exact for this?

I have used {{issue.Story Points}} * 0.15 to update the QA Estimates and PM Estimates fields.

Please suggest.

Like Kishan Sharma likes this
VT Jira September 11, 2024

@Kishan Sharma I have sorted it out. Thanks again for your detailed explanation.

Like Kishan Sharma likes this
Kishan Sharma
Community Champion
September 12, 2024

Glad to help @VT Jira !

Like VT Jira likes this
3 votes
Answer accepted
Marc - Devoteam
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.
September 11, 2024

Hi @VT Jira 

What have you tried already?

Look at how to use automation with smart values on calculations.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/ 

VT Jira September 11, 2024

Thank you @mar , I have tried the smart values on calculations and it helped me a lot.

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events