Forums

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

Automatically update custom field when a JIRA abacus field value changes

Valentina Malavolta March 14, 2018

Hi,

I try to create an Automation using Code Barrel Automation. I'd like to update the value of an issue custom field when an abacus field (calculated field) change value.

In the screen you can see my test.

Thanks

rule.png

1 answer

1 vote
Kian Stack Mumo Systems
Community Champion
March 14, 2018

Hey Valentina, 

We'd be happy to work with you to try and resolve whatever issue you are running into. If you email abacus-service-desk@mumosystems.com or raise a ticket in our help desk we'd be happy to help you with your set up. 

Thanks,

Kian

Josh Ginger-Goodson March 14, 2018

@Valentina Malavolta we are currently working on a feature to set a custom field value when an Abacus field changes. We have a release coming this week, the feature you desire should be released in the next release after that. Please stay tuned for updates.

Valentina Malavolta March 14, 2018

@Josh Ginger-Goodson there is somethings else that I can do? My customer need urgently this features. Thanks a lot

Josh Ginger-Goodson March 14, 2018

Without being able to do this directly in Abacus, I think you should still be able to achieve this with the Automation plugin. I think this is what you are looking for:

automation-set-custom-field.png

 

Now this screenshot shows how to set a hardcoded value within the advanced field option, but I think smart fields still work. so you're looking for something like:

{ "fields": { "customfield_[totale_adempimento_field_id]": "{{issue.customfield_10905.value" } }

Where [totale_adempimento_field_id] is the custom field ID for that field.

Here is also a reference to using advanced fields: https://docs.codebarrel.io/automation/smart-fields/advanced-fields.html

Let me know if this helps.

Thanks,

Josh

Valentina Malavolta March 16, 2018

Hi Josh,

I try your suggestion:

Automation.png

I think that the automation work, I can see it in Audit Log

AuditLog.pngBut the custom field 'Totale Adempimento' is not update :(

ISSUE.png

Nick Menere
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, 2018

Sorry Valentina, but I missed this issue.

I think you are close to the solution.

To make it simpler I'd use the field from the field selector and just put the smart value in there.

I'm not sure of the exact format from Abacus but it may not have a "value".

Try the smart value:

{{issue.Your Customfield Name}}

 

Just replace the "Your Customfield Name" with the name of the custom field you want to copy.

 

If that doesn't work, can you add a "Log action" before the Edit issue action with following value:

{{issue.Your Customfield Name}} || {{issue.Your Customfiel Name.value}}

 

Take a screenshot and copy that here.

 

Also, what value does the field have when you go to:

<yourinstance>/rest/api/latest/issue/<issue key>

 

That is value we are trying to navigate.

 

Cheers,

Nick

Rachel Imbrogno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2018

Hi @Josh Ginger-Goodson, Just wondering if the feature to set a custom field value when an Abacus field changes has been released yet? I'm hoping this will solve my issue: I would like the custom field calculation to be re-executed on all issues if the related formula in Abacus has been updated.. is this possible? Thanks :)

Kian Stack Mumo Systems
Community Champion
September 7, 2018

Rachel, 

At the moment, this is not the feature that is being developed. We will add that as a feature in our backlog. 

If you want to recalculate all your tickets after changing a formula, you should be able to do this with the following process: 

1) Modify the execution plan containing the changed formula to be triggered on "issue comment" event. 

2) Bulk update tickets in your project with a comment. This should cause tickets to recalculate for you. 

 

After you've done that, you should be able to revert your execution plan to what it was before. It's not the nicest process at the moment. We would like to get something better out soon.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events