Hi everybody,
In my jira i have five types of tasks, and ten types of subtasks, Each task have a different order of subtasks when they are created.
When i change the type of task, i created a automation for to eraser all subtasks and to create new subtasks in correct order, but i need of more precision in this action.
The same subtask is in different subtask and I want it to:
For exemple:
Task 1:
Task 2:
When i change Task 1 to Task 2 :
Somebody know how i can create this automation?
The most problem is to put the subtasks in a new order.
Short version: I do not believe that is possible with out-of-the-box automation
Longer version:
Kind regards,
Bill
I @[deleted] , Thanks for the anwser.
Well... I imagined that to put the subtasks in order was the most dificult, the organization of the subtasks have some limitetions in the Jira.
But is very interessant your understanding, I thought that the Jira organize the order of subtasks only by key numer.
By the way do you know a way for the automation to search a subtasks when i change the type of task and if doesnt to find them, creat them?
Best regards,
Douglas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding ordering, as sub-tasks are created over time the issue keys will increase. So key order matches created order.
For your next question, would you please explain a bit? Are you asking how to find if a sub-task exists with some criteria, and when not found add one with that criteria?
If so, you could use Lookup Issues with JQL, and if the resulting count of issues is zero, create the issue. The JQL would be something like:
project = myProject AND issueType = Subtask AND parent = parentIssueKey AND some other criteria
And the condition check would be {{lookupIssues.size|0}} equals 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For exemple, i have this standarts of tasks and subtasks:
Task1:
Task 2:
Task 3:
When i change the type of issue, the automation should to create the subtasks for keeps the standart but cant to have duplicate subtasks. Not necessarily in the same order, i can change this after.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying;
Correct?
If so, the only way I am aware of to do that would be to delete (or abandon/complete) the existing sub-tasks and then add them back, one by one, with the delay I noted, in order to force the ordering.
This will lose any information in the overlaps which was manually entered (e.g. Registration sub-task details)
For example, let's say a Task is created and can change type *before* work begins. In that case, It may be better to not add the sub-tasks until work begins (based on status transition). This would eliminate the need to change sub-task lists later.
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 , thankyou again.
Lets me explain, We have some types of project and for to know what the type is corret we need of a feedback of client, but have some subtasks that is the same for all projects. This is happens with a few frequency, i can put the subtasks of manual way, but this could generate delay some process because Would have to wait for me to see and modify.
If i have a automation for this i can create some triggers for change the type of project (a email received for exemple), making things more fluid.
Well, we wanna a process that be most automate possible, but put the subtasks in order really seems dificult, Then i thinked in have a automation for delete the subtasks that are not needed and create the ones I need, When I change a tpe of project.
not necessarily leaving them in order. i do this manually after.
But the difficulty now is create a automation that When i change the type of project, create a subtask if it doesn't exist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Douglas, regarding your last sentence:
But the difficulty now is create a automation that When i change the type of project, create a subtask if it doesn't exist
I believe the only way to do that is to perform a JQL check for the sub-task with that summary and parent, check for its presence, and add it when missing. The presence check would be with an if/else block and related issues condition, or using Lookup Issues with JQL and testing for no issues found: {{lookupIssues.size|0}} equals 0
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 am trying to use the JQL search, but i am doing something wrong, i used this rule.
you could help me with this rule?
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, Douglas! A few things I noted in your rule images:
1) In your condition you are testing Lookup Issues information, but you have not used the Lookup Issues action. That needs to happen first to load up the data with a JQL statement to look for any missing sub-tasks.
2) In your condition JQL, there are a few issues:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @[deleted] ,
I dont knew this action function, very usefull.
But doesnt worked, I belive that have something wrong in my smart value, I am use:
{{lookupIssues.issueType.Aceite do cliente.size|0}} = 0
Is the correct way ?
Regards,
Douglas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Douglas, you cannot query with lookup issues that way.
How about this: Let me try to draft a rule for what I believe you are doing, and you can provide ideas to improve it.
Please compare this to your rule and modify as needed for your issue type values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Bill Sheboy ,
Its worked! But i dont know why doesn't worked with the smart value {{lookupIssues.size|0}}, Its worked when i use {{lookupIssues}}.
I really appreciate it. Will help me a lot!
Best Regards,
Douglas
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.
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.