Context:
Question: How can point #7-2 be accomplished?
I was able to find the solution to this. I was going down a path more complicated than I needed. I was going down the path @Oleksii Melnyk _MOY Apps_ suggested. To go into a branch for linked issues, and set variables that I wanted to use outside of the branch -- a suggestion Rovo told me would work by the way -- but there was a problem: variables set inside the branch are empty/inaccessible outside the branch.
Because my head was going down that path, I failed to think about the much simpler "Lookup work items" action.
I ended up creating a lookup action with JQL: issue in linkedIssues("{{issue.key}}", "is the delivery ticket for")
Then I was able to set variables to values such as: {{lookupIssues.Request Type.requestType.name}} in subsequent steps.
I hate to be that guy that wasn't patient enough to find the answer before asking the question, but today I'm that guy. Maybe this will help someone else someday.
(Reply removed and replaced as it was posted using the wrong account)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kent G -- Welcome to the Atlassian Community!
Well done solving your own question with experimentation! To help others find this solution faster, I recommend accepting your own answer :^)
Yes, and...I recommend caution using any AI-guesser tools for automation rule solutions, including those provided by Atlassian. They likely cannot access your complete products, site, space, etc. configurations and data context, and so the guesses are: at best, incomplete; and at worst, could cause irreversible changes / errors to your work items. I suspect even a very complex prompt with all site configuration data would still produce an incomplete answer. So, buyer beware using such tools with automation rules.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more thing for the rule images you just posted...
The Lookup Work Items action gathers zero-to-many work items, and the inline format of iteration you use to get the request type ID could possibly produce zero-to-many values, in a comma-separated values list.
There are two ways to manage this, depending upon whether or not you want to handle returns of more than one work item:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Feels weird to accept my own answer as "the answer" but aside from that -- how do I do it? I'm not seeing a link or button to "accept this as the answer." Perhaps it's not showing up because I'm the OP? Or could very likely be I'm just missing where it is because I seem to miss things if they're not entirely obvious!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or it could be because somehow, the site switched me to a different account. In fact, no "could be" about it -- I don't know when or how it did it but that's exactly what it did.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kent G and welcome to the Atlassian Community.
First of all you need to use Branch rule / related work items with Type of related work items = Linked work items
Than in this branch, you can check the work item type/request type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(Reply removed and replaced, as it was posted using the wrong account)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Oleksii Melnyk _MOY Apps_ Thanks for the suggestion. This is actually the direction I was originally going but the problem was -- when a variable was set inside the branch, the variable was unable to be used outside the branch.
So within the branch I could retrieve the Request Type. But once the branch ended I was unable to do the following...
If varRequestType = "Request Access" then set Assignee = "John Doe" because varRequestType was empty outside of the branch.
I did end up finding the solution, which I'll add as a reply the the main question.
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.