Hello,
I have two separate project boards, and I am using workflow automations to copy stories from one project to another based on the department responsible for completing the story. And I cannot seem to figure out how to code/automate the update of the Epic Links from one project to another.
Ex. Project A has a story that they need help from Project B to complete.
So the story on Project A has all fields assigned and coded to a particular Epic (SFSD-2) (Assignee/Epic/Reporter/Description/Dept resp/etc) - and we have it coded when status is transitioned to 'x', a new story is created on Project B board with all pertinent information copied over.
But Project B board has a different Epic Link assigned for them (SL-2093) and the product owner would like all stories on Project B board to reflect their own Epics automatically - and not have to reassign them if possible. (Epics have the same name, just diff Epic Links)
I cannot seem to figure out in the automation rules, what triggers and coding I should use to ensure this happens correctly.
I would expect that Project A Epic "Rev.io Go-Live" (SFSD-2) would be able to be edited through automation to update on Project B to Epic "Rev.io Go-Live" (SL-2093).
Any thoughts on how to properly accomplish this? I'm open to all suggestions.
Thanks in Advance!
If your Epics indeed share the same name, you could do something like this with automation:
Key != {{issue.Epic Link}} AND summary ~"\"{{issue.epic.summary}}\""
NOTE - The lookup action for this rule would require a multi-project scope so you need to be a Jira Admin to make it work.
Thanks @Mark Segall
Please see the automation steps setup based on your suggestion above, does that looks correct?
Also, it appears to have created a 2ndary issue, but did not edit/update the epic link on originally transitioned/created story.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can i not attach screenshots or attachments here so you can see anymore?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That rule was intended for the whole thing, replacing how you currently create the issue on issue transition and adding the Epic Link in that same step.
You should be able to attach screenshots still. It's the 3rd option from the right in the editor menu
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.
I already have JMWE Post Functions automated to create the new issues on the respective boards.... I am just trying to update the Epic Links/Names to the corresponding Epics Links/Names on the newly created/transitioned issues.
Is there a way to automate this portion that you are aware of?
If there is an Epic with the same name, transition it from SFSD-2 to SL-2093 so that the issues for the 'SL' board show only the 'SL' Epics?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segall in the screenshot above, I would expect SL-2370 issue to have the Epic Link updated from "SFSD-2" to corresponding Epic Link for the SL board - "SL-2093"
It seems to be stuck and staying at "SFSD-2"...
I hope I'm not confusing you with what my goal is :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the added context... So your post function is creating a new issue and assigning it to the same Epic as the source issue, correct? You would modify the rule like this:
Key != {{issue.Epic Link}} AND summary ~"\"{{issue.epic.summary}}\""
{{lookupIssues.size}}
Equals
1
{{lookupIssues.key}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, it appears to have started working a bit, but is getting hung up and adding a comment to each test. It appears that it's comparing any issue 'summary' looking for the phrase that matches the Epic.
Ex. Newly created issue (SL-2378) is failing to update the Epic because the Automation Rule is looking at a separate (historical) Issue SL-2216 Summary = "Rev.io Go Live To Do List" --- but Epic on this issue is "Salesforce Team"... so it's not updating my newly created SL-2378.
Is there any way to have it ONLY look at the Epic Name/Link and not any Summary or Description?
I really do appreciate your insight, and I'm sure it's just one small change, but i cannot seem to figure it out.
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.
Ahh... I would update the query to be specific to Epics:
Key != {{issue.Epic Link}} AND summary ~"\"{{issue.epic.summary}}\"" AND issueType = Epic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segall The automation piece appears to be working when transitioning and creating the new issue via the workflow post functions for this project in particular.
I am however, running into 2 issues noted below with screenshots:
1. When creating an issue directly on the project board where the automation is in place, it is keeping the assigned Epic on creation, but also flagging an error in the automation and adding the comment that '0 Epics found, unable to match, etc' -- Is it because it's looking for a 'matching' Epic and because it's the only one, is reading there is nothing to 'update'?
2. I attempted to add this automation to another project board (Project C) that will receive the same type of issues from master board (Project A) -- and I confirmed that all configs match the original (Project B) automation -- and I am getting an error in the JQL query.. not sure how this is possible if it works for the other project. (ugh)
What am I missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When an issue is created by the post function does it add any distinguishing characteristic like a label or component to differentiate it from issues that are created manually? If so, we can use that in a condition. For example, let's say that issues created from the post-function have a label called MY_LABEL. You'd update the rule as follows:
Key != {{issue.Epic Link}} AND summary ~"\"{{issue.epic.summary}}\""
{{lookupIssues.size}}
Equals
1
{{lookupIssues.key}}
This would ensure that the rule only triggers when the issue was created via post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segall That was the distinction I needed! Thank you so much!
After multiple additional tests just to make sure all angles were covered, it is working exactly as I would expect now!
I cannot thank you enough! Those smart values and JQL's always seem to get me & I need to become more familiar with them.
Have a wonderful day!!
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.