Hey everyone i was wondering if anyone can assist me with an issue.
We have two teams who are working on the same project. One team uses team-managed and the other team uses company-managed. We havent changed anything from default tickets (tasks, stories etc) minus one were it is called release deployment. I have changed a few of the columns but i am not sure
I am trying to create an automation where if something on company-managed is created under an parent (epic) it will be cloned onto the team-managed project using this logic below. This is coming from company-managed board.
I currently have a testing project (our old board) that is company-managed but every time i create it i get this error: " Can not create issue in project/issue type 10112/10014" I aint sure what this means at all because i aint getting enough info to understand what this means.
Any help would be grateful. I aint the biggest Jira expert so i will need info on how find things if you require additional info.
Hi @Abi Williams -- Welcome to the Atlassian Community!
Team-managed projects (TMP) have their own configurations and types, different from the shared ones for company-managed projects (CMP). That error indicates using the Issue Type of "Same issue type" will not work with the TMP, and so it shows the specific issue type id values which have the problem.
Please try selecting the specific issue type from the dropdown list to see how that helps.
Kind regards,
Bill
Morning @Bill Sheboy
The company-managed project will use both stories, tasks and spikes for this project hence why i wanted to keep it as the "same issue type" because i figured it will copy over easier.
I tried checking to to task as a test and go another failure. Apparently it didnt like the story points so i removed this too.
It now looks like this.
And these were the errors:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding story points:
Please select the correct field from the dropdown list for the TMP issue, supplying the value as {{issue.Story points}} to copy it. However...
Regarding issue types, this is a known problem for cloning issues between TMP and another project...even two different TMPs: https://jira.atlassian.com/browse/AUTO-410 The defect is intermittent: in my test site, the Task issue type works but the Story one does not :^(
Two possible work-arounds to try:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Afternoon @Bill Sheboy
TIL about story points. They don't specifically highlight it easier between team vs company-managed projects in regards to fields but it might be being picky!
AUTO-140 would explain the issue then. Thank you for finding this.
I have figured out to do method 1 and it is working perfectly. Thank you very much! Only thing i am not sure about is how to do subtasks on tasks? Do you have any advice on how to do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subtasks are challenging for cloning in rules, and one approach to try is:
This method will not preserve the order of the subtasks from the source issue because branches which could be on more-than-one-thing are run in parallel and asynchronously.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry do you have an example of this? Not entirely sure how to do this. I have created the variable but not sure how to branch to the trigger on the issues subtasks?
I am not worried about the order of sub-tasks as we will coordinate it between the teams but thank you for the additional info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps try extending your original rule, like this, with the changes in bold font:
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.
The rule editor does not always make it easy to see what is possible :^)
In the Create Issue action for the parent field:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy
Sorry been super busy so i have been unable to do anything until now but i have reattempted this but it isnt working? Im pretty sure im doing something wrong but i cannot see my error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When cloning the subtask, please set the Parent field, not the Epic Link field, to that created variable for the newly cloned Task.
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 just tried again and creating a subtask with a parent specified by a variable still works.
Two things to check:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know it is something i am doing wrong but not entirely sure what.
Not sure how to write something to the audit log.
Here is the screenshot of the created variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The create variable action looks correct.
There is a log action which allows writing text to the log: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action
If you write that variable to the log after it is created that may help. Perhaps something like:
the clone key is: {{varCloneKey}}
If that shows as empty, something is wrong with where the variable is created.
To check that, please post an image of your complete automation rule, in one single, continuous image. To do that, you may need either a scrolling browser capture tool or browser addon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have noted another weird issue. Every time i create a task it doesnt copy onto the board. There will be some tasks without subtasks. Spike, bugs, stories etc are all working fine but not tasks on their own and tasks with subtasks.
Update: just tried it on bugs and not working either. Something isnt right with the ordering i believe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you compare the log to the rule steps, you will see the Task issue create is failing.
And so the created variable is empty as there was no issue created.
Please review the image of that action as I suspect it is trying to set the parent, but it should not for your scenario. Setting the parent should only happen for the Subtask create in your scenario.
The log also shows that the trigger issue did not have any Subtasks and so the branch did not proceed. Did you expect that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did note that but im not understanding why. The tasks are being created as i can see them on the board okay. I also attempted to create a bug and now that isnt working where it was working before i introduced sub-tasks.
For testing i created a task then add the subtasks afterwards so no i wasnt expecting that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Given what you describe, I would expect that behavior for the branch:
At this point, I recommend working with your Jira Site Admin and contacting Atlassian Support to take a look. They may see something we are missing.
You appear to be on a paid Jira license, and so your admin can submit the ticket here: https://support.atlassian.com/contact/#/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay thank you very much for your help.
I will run the automation without subtasks so i got something but i will speak to Atlassian and see what can be done.
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.