I've been asked to look at an automation rule to see whether I can fix it but no matter how I look at the problem, what combination of changes I make to the rule, the outcome still returns the incorrect results.
We have a custom field which acts as a counter and the idea is that the counter adds 1 every time a new bug is linked to an issue (i.e. story, feature, task, sub-task).
I have tried destination issue and current issue but what stumps me a bit is this: {{#}}{{issue.fields.customfield_10074}} + 1{{/}}
I'm not sure whether the syntax is correct. Hoping someone more skilled than I can advise on the correct configuration.
PS: At the moment the custom field returns a number 15 when there are only 14 linked issues of which only 5 are bugs.
Hi @Heidi Smith -- Welcome to the Atlassian Community!
To confirm your use case, do you want the count to be the current count at all times, handling cases of both add/remove links?
If so, perhaps instead structure the rule triggered and checked for only the non-bug types, so it always recounts the linked bugs, with JQL and a Lookup Issues action to get the count.
Kind regards,
Bill
I agree with your analysis.
For me the rule currently is a counter that does + 1 every time it runs.
The "For current issue" says that we are only going to pass on the issue and not on the links and that we add 1.
Is it possible to write us the requirement?
Kind regards,
Morgan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you asking a different question, or are you working with Heidi on their question, or something else?
Thanks,
Bill
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 @Bill Sheboy ,
I'm here just to answer the original question.
I find your analysis good.
I ask @Heidi Smith to write us his need so that we can reflect together on his problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to smart values and lists. I've just spent a few days dealing with a similar problem.
I would guess your count being off by 1 is related to the default value for the custom counter field. I would verify that it is 0 or none.
I believe what is happening is that it is iterating all of the issues found in the trigger even though the logic here says it should only find the Bug issue type to use to increment the count.. I would try changing All Types to just Bug or try to use a JQL search to limit the number of issues found to just the Bugs.
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.