So i want to clone or create a new issue with the same data in a different project. just like this:
But i always get an Error:
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
I believe the project id value may be provided to create the issue dynamically. For example:
Kind regards,
Bill
Hi @Bill Sheboy
so here are the Details:
So the cloning and creating a new issue doesnt work.
The Project key is also correct
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you add a log action after creating the variable and log the content of the variable.
is this a correct project Key, I suspect so by your mention.
But I think the issues is this text and the project option in the clone and create acton need an value, as the project field is not text.
By using these conditions normally, you will start typing and based on your input a project can be selected. This is an ID.
So in you automation you would need to use the variable to find the correct ID of a project and you that as input
Al theoretically of course :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is an existing smart value named project, and so it is certainly possible the rule is getting confused by your variable name. I recommend always adding a prefix to variable names to avoid problems, such as with varProjectId
And as Marc and I have described, you must use the project ID and not the project Key to dynamically select the project for issue creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam ,
your theory worked exactly like you predicted.
It worked after querying for the correct ID via the Rest API
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Juergen Koeck,
If you are encountering problems with your cloning automation, and you are willing to try a third-party app, you can try our app Deep Clone for Jira. Deep Clone allows you to clone issues across projects, including bulk cloning and adjusting fields dynamically, without needing complex automation rules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to clone an issue into another project, you need to specify the project where the issue needs to end up.
This is not dynamically possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for the reply,
so i need to make a REST call to clone the issue in another project, which does the exact same thing, except its a bit more tricky?
This should work or am i wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No API can't do this as well.
You need to specify the project key or project name where the clone needs to end up.
This doesn't matter if you use automation or API
You can't use a dynamic project key.
You could make a lookup table in your automation and based on the id from the table you will have a value (set these values as project keys)
Based on if/else options in a rule the issue would get created in the related project.
This can only be done with a manual rule where you ask an input value
Then compare this value with a value from the lookup table
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.