Hi there,
I want to automatically create 3 tasks when create the story.
for example
>create story "change the login flow"
>automatically create tasks of
1. "iOS-change the login flow"
2. "Android-change the login flow"
3. "server-change the login flow"
and these tasks will related to the story.
I use the automation function but I don't know how to write the json of it, because I cannot figure out the smart value of the parent story. this is my current automation setting.
Hi @Jessie Li
You can do this without JSON - I've assumed for this example:
If this is correct, see below...
---
The rule will look like this...
---
^ A few notes on this approach:
---
Let us know how this goes, and if you need any further information :)
Ste
Hi Stephen,
Thanks for your answer. It works well.
But I also want to make the task in the same sprint with the story. I set the field "sprint"= {{triggerissue.Sprint}}, however the task created doesn't has a sprint. Could you tell me what's the problem?
Thank you.
Jessie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jessie Li
Sprint works off ID in Automation - so if you change the Smart Value to...
{{triggerissue.Sprint.id}}
...it should work!
---
You can also use the simpler "Copy From" option here though.
To do this, within your "Create Issue" action...
This should also work.
---
Let us know if you have any further questions!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jessie Li,
Most likely, there is no json required to set field values. You can copy values from the trigger issue just like this:
Just select the fields you want to fill out. With the ... link next to each field select copy from and then update the selected option to copy ... from trigger issue as you can see in the above screenshot.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jessie Li
You need to use JSON for setting fields not supported yet by the automation. In your rule you are already setting Summary to "ios". You can also set other fields like this.
Ravi
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.