I am having troubles (and tried 1000 ways how to fix) running automation (global) that is triggered upon Project creation. Trigger works perfectly, but i can not create a single issue/task. Everything is blank, out of the box, no custom fields, values etc but i am still getting this error
Hi @Samuel Imrich -- Welcome to the Atlassian Community!
The likely cause of that symptom is timing (i.e., a racetrack condition) where the Project Created trigger fires before the project configuration (including the issue types) is fully available...leading to the errors you observe.
For workarounds, something needs to happen to slow down the rule a bit after the trigger and before the Create Issue actions. What license level of Jira are you using?
Kind regards,
Bill
Hey Bill, Thanks for your answer!
I tried delaying the execution by adding three dummy web actions just to prove the concept (and wait till response is received). There was more than 30 secs of delay between project creation and Create issue state but it failed as well. Or should it wait longer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to confirm, what type of project is this for: company-managed or team-managed?
If this is for a team-managed project, their issue types are unique for each project. That is, the internal ID for the issue type is different even when the names are the same.
The saved ID values in the Create Issue actions will not work as they are unknown when the rule publishes and they cannot be updated dynamically. (At least that was not possible when I tried this scenario a year ago.)
I believe the only workaround is to use the Send Web Request action to call the REST API and...
This approach will likely eliminate the need for other delaying rule actions for the racetrack condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Uff, thats a really complicated workaround for such a simple task, but you are correct. When i tried changing the project type to Company managed, automation ran without any issues, so thanks for that! At least now I know where to look.
I am trying to build the workaround with the API you proposed and keep you posted if that helped, but i am a bit dissapointed that such a trivial thing can not be done with "out of the box" solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboyjust FYI, i managed to get it working with proposed solution using API, although i must admit that this solution is so overkill for the thing that it really does - just creating a task on newly opened project.
and here my second question arises, is there a solution to have a global variable (or property set) in jira automation that is available across all rules? Let say, like a bearer token.
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 open suggestion to add secrets storage to support automation rules: https://jira.atlassian.com/browse/AUTO-1365
Until that is added, I do not believe there is a built-in, secure place for such information when using the Free license level. Perhaps check the Atlassian Marketplace to learn if one is available with an addon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Samuel, have you looked into using the Incoming webhook trigger for your automation rule?
I'm happy to guide you through setting this up!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jeremiah, but the trigger itself is not a problem, the problem is simple and basic operation which is "just create a task". I have done complicated things in prod, this is just testing in my dev but cant get a simple task being created for no valid reason.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share the screen shot of the automation that you have created so far?
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.
Can you try using same project instead of same project as trigger?
Also, not sure if creating a Epic first makes a difference.
In my cloud instance the rule is executing file and creating the issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did exactly the same thing, error as usual (but the first ID is the one from Epic)
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.