I have an issue that I can't seem to solve.
Scenario:
A user is creating a request and we have a checkbox list of items they can select 1 to all items, these represent tasks that they need to be completed in the request.
We then need an automation that goes through all the selected options adds different amounts to the Original Estimate and has the total number be the final outcome.
Issues:
I was going to try to use Variables but there doesn't seem to be a way, that I can find, to dynamically update the value of a variable and have it then be pushed into a field.
All I need is to have a reliable way to check all options selected and add the corresponding hours to the estimates. Does anyone have any ideas on how to do this?
Hi @Ryan Wolfe
For a question like this, please consider posting images of your rule and audit log, showing the details of the execution that does not work as you expect. That context may help the community to offer suggestions. Thanks!
Based on what you describe, I hypothesize a few things are happening:
My suggestion: figure out a way just to count the options and then multiply, if possible for one single edit.
Kind regards,
Bill
@Bill Sheboy how would one re-fetch? because I even tried making the if/else into separate automations and the same issue occurred which I would assume would mean I am re-fetching each time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Ryan. There is a Re-fetch action to do that. And yes, you would need to re-fetch after each edit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Thanks for the clarification, I just did a test with a simple number field and the same behavior occurred even with the re-fetch. It ignores the previous "if" statement adding a value and only does the last one that is run. I did put a re-fetch at the end of both if/else conditions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, that seems incorrect as branches which evaluate to one-and-only-one issue should run in-line, and not asynchronously.
Would you please post an image of the audit log details as that may show something to explain this behavior? Thanks!
And if that shows nothing useful, let's try eliminating the branches and substituting with if/else structures, like this with independent if/else components
One more thing: have you confirmed that custom field ID is what you need for the field? You may check on the needed smart values for a field using this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy I have found that if I pull the "re-Fetch" out of the condition/branch it works.
It looks like this:
This has been the only way I have gotten it to work.
Thank you for your help though, wouldn't have got on the right path with out it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fascinating, and I am glad you got this to work!
You only need re-fetch if you plan to compare/update the field later in the rule, so you can drop the last re-fetch if you wish. Each re-fetch call adds potentially several seconds of execution time so use them sparingly.
As there appears to be some timing-dependent things happening in this rule I recommend watching it for a bit to confirm it keeps working. And then consider marking this question as "answered" so others can benefit when then have a similar need. Thanks!
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.