Hi,
I have a project that I use to sort and triage some issues.
This project is used to report the people that create the requests (issues are started on other platform and inputed on Jira through API). An automation alert (email) is run to inform the requestor when the issue transition.
After the sorting and triage I'd like to create a linked issue to another project. I've already created an automation that creates and links the issues to a specific project and it works perfectly.
This solution was approved and now this same origin platform is creating issues that I must assign to many projects (one at a time). So, I created a custom field that selects the project where the linked issue must be created (all projects on my organization are shown). When I transition some issue to an specific status I want to create that linked issue on the project selected by this field. I created a transition rule that assures this project field can't be empty.
My problem is that in the create step on the automation is returning an error when I select the type of the linked issue being created (I tried all available on the dropdown):
I also tried to set the issue type as "Same issue type" and "Same issue type as trigger". The valid type error does not happen, but the automation runs with the following error:
I'm totally in the dark. Can anyone help me create a linked issue on another project based on a custom field?
Hi @Morara -- Welcome to the Atlassian Community!
Based on what you describe, if you are using only company-managed projects, selecting the project ID from a field will work with a single issue type such as Task.
The problem is the Create Issue action cannot validate the issue type if company-managed or team-managed projects are used...because with team-managed each project has its own type configurations.
One possible solution is using the REST API with the Send Web Request action:
There are still challenges with this approach, as a project could be added for which the rule actor does not have permissions. And so care must be take when creating the API token used in the calls. Similarly, for projects like JSM and JPD, other permissions may be required.
Kind regards,
Bill
PS: would one of the community managers please move this thread from the App Central questions to the Atlassian Automation product questions area? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hej Morara ,
within Automation for jira u can access the smart values
{{issue.project}} - the project this issue is a part of.
so you have the projectKey of the issue
no need for an infinite loop of if/else
/Mat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Morara - Welcome to the Atlassian Community!
How many different projects are there to choose from?
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.
Then the 10 would not be unreasonable to add IF/ELSE logic to the rule for
IF custom field = ABC then Create issue in Project ABC
Else custom field= DEF then Create issue in Project DEF
and so on through the 10.
Once you do the first one, you can copy the action and simply change out the project as the location for the issue to be created - it's a fast process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your sugestion.
I´ve already thought about that. My only concern is human error when a new project is created a new branch on the IF/ELSE logic must be created.
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.