Hello everyone, everything good?
lease, I believe that this doubt is basic for many, but ultimately I was not able to reach the result I expected.
I have a project and within them there are hundreds of Components, I would like to make an automation that does the following:
My problem is that when creating this automation it is functional in all my project, that is, whenever someone creates a subtask (in any component) the automation works.
I just wanted it to work in a single component, so it doesn't hurt other teams.
I don't know if I managed to explain it well, but the attached print, and the automation I created.
I think I understand what you want. I would try something like I have in my screenshot:
Hi, @Tim Perrault sorry I didn't see your message.
Thanks a lot for his answer.
I don't know if it could be the configuration that my organization made but I don't see some components and fields, as I see in my test environment.
I tried to use this same rule, but I didn't find the Issue Type for example.
Would it be possible to do this with JQL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both the conditions I used were the Issue fields condition. Are you not able to select Issue Type in the Field section?
But yes using the JQL condition should also work.
issuetype = Sub-task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I managed to find the field, I was looking in the wrong place sorry. I did the same test as your print and then I reversed the component, in both cases it shows the message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the rule did not work? Can you post a screenshot of your rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course.
The 04:32:38 log was generated following your example (your print)
The 04:34:33 log was generated according to the current image.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok it looks like the sub-task LBRI-663 does not have a component when it is created. When you create a sub-task does it have a pop-up screen where you can add the component? Basically the component will need to be on the issue when you are creating it. If you add the component later the automation won't do anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Na verdade, quando a subtarefa é criada, ela é criada sem o campo do componente preenchido, somente depois de criada ela aparece.
Na impressão, a tarefa tem o campo componente preenchido corretamente.
Depois de criar a subtarefa, o campo não é preenchido.
Com base na sua análise, eu já deveria criar essa subtarefa com o campo Componente corretamente preenchido como Governança, correto?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes the component field will need to be filled in if your trigger is when an issue is created to work. You could use the Field value changed trigger if you didn't want the rule to run on creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Automation this way works, however any subtasks that are created in any component will use my rule.
These are the components I have in my project.
And the idea is that the rule only works when subtasks are created in the Governance component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use the issue updated trigger and add the condition for component back. That should work I think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will test it and post the result here.
Tim thank you very much for your patience and cooperation.
Here in Brazil it's already 18:20 pm on Friday, the body has to rest a little. rsrs
As soon as I test it I'll let you know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Tim Perrault @Hana Kučerová everyone, everything good?
Tim managed to do the automation here.
I left it that way and even acted ps other teams didn't complain about subtasks being automatically closed, so I believe I managed to reach the desired result. Now just refine the code.
Thank you very much for your partnership and help. Automation was like that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rodrigo Xavier ,
welcome to the Atlassian community!
I believe what you need is to set the scope of the rule to the single project.
It can be found in the Rule details section.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot for the quick feedback.
I had looked before but I didn't find any relationship.
Would I have to change the "Actor" field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
I can see the scope is ok - single project LPBR ICT.
I didn't understand you correctly.
Probably @Tim Perrault is right, you need to add condition with your component.
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.