I'm creating a daily task, which I will like to assing as linked issues the result of a JQL query.
I don't see the option of linked issues field
Hi @Mauricio Cordeiro -- Welcome to the Atlassian Community!
First thing: what problem are you trying to solve by doing this?
I ask that question as if your "daily task" could return the same list of issues, day by day, the list of links could get longer and longer.
Next, you could try using advanced branching on the issues, and link them one-by-one in the branch: https://community.atlassian.com/t5/Automation-articles/Branching-over-smart-values-in-Jira-Automation/ba-p/1741935
Kind regards,
Bill
Hi @Bill Sheboy thanks for the answer.
What problem are you trying to solve by doing this?
I'm creating a daily stand up task. In this case, the amount of task on the Sprint are limited it will generally decrease or it will be the same amount( In an exceptional case it will increase one or two tasks). The tasks that a developer needs to do are on that Sprint. So, at the end the developer will say what he did yesterday ( task that are on the sprint marks as done and finish the previous business day). The tasks he will do today, task that are in progress or in TODO. It will be easier for the developer read from there and fill the questions.
So, I can do the JQL for those tasks, but I don't know how to link them to the daily stand up task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using your JQL and the Lookup Issues action, you would create a list of issue keys, and those would be the input to the advanced branch to then link to the triggerIssue or the created daily task.
{{lookupIssues.key}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill SheboyI tried that but without success, I will probably figure it out way and post the task here. My main problem though is the relation with the field. When I 'm create the Issue, I choose fields to set > Link Issues and there I don't have optino to set a smartVariable
Regarding the advancing branching, I do the filter that has results, and I tried to display just the key on the description ( for testing purposes checking that works) and it doesn't create any task.
If I understood correctly, it should create new issue for every old issue that is In Progress or ready. ( Again this part is only for testing the iteration of the list of issue), in reality I just want to assign Linked Issues with the result of the query
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To use smart values in actions like Link Issue, type in the smart value expression (rather than using the drop-down) and it will appear below the field...when it does, select that value and it will be used.
Let's confirm your use case...is this what you wanted?
Once per day...create a new task...which is linked to other issues based upon a JQL query.
If so, you can just branch and not use the lookup. Please consider a rule more like this:
One more thing to consider...If there is a possibility of no issues found to link, would you create the daily task? If not now the Lookup Issues (or related issues condition) become helpful to add a test before the task creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think that my automation is not working because I'm doing something wrong, which I can't identify. The JQL return 30 results, so is working. My current automation rule is:
But the LookupIssues is not showing the key or anything. So, that's why I believe the following options doesn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post an image of the audit log details showing what happens when the rule runs. That may help clarify what is happening.
Did you try my suggested rule, without the Lookup Issues action and no JQL for the scheduled trigger?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, the audit log doesn't show much.
Another weird thing that happens is if I change the trigger to a schedule one it doesn't allow to save the rule.
My Rule is:
I didn't tried the rule that you suggested because I wasn't sure how to do it.
That is all the info that I have on the rule.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just tested the rule I described earlier to confirm it works. Please try creating a new rule as follows and let me know what you observe.
** For your JQL, a scheduled rule cannot use currentUser() so please update your JQL accordingly **
You will not need the Lookup Issues action using this method.
Thanks!
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.
Please note that currentUser() is not going to work in a scheduled trigger rule, as the rule actor is probably the Automation User and not a logged in person.
If you need this to work for a specific user, please change the rule actor in the details. If you need some other behavior, please describe what that is. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! It did work. It should be specify though that currentUser is null and is used with that context of Weekly trigger.
One think that I'm not being able to accomplish is to get the name of the assignee on a text field ( neither summary or description, tried different fields but not luck, empty all the time)
Possible other question
I would like to iterate over a team or a list of people creating those tasks for each, instead of one. But I believe for beginner like me in Automation Rule on Jira is better to open another question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am unclear why your displayName is not available. Two possible causes are that there is no {{issue}} at that point in the rule or that the assignee is Unassigned/null.
Regarding your other question, this seems related so let's try addressing it here...
And, I do not think that is easily possible with your rule. You cannot have nested branches, so one work-around would be:
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.