Hello!
I would like to create an automation rule so as, when moving a task to "in progress", to create child tasks.
The trick is that I want to add a number of files to the parent task and I would like for each of the child tasks to automatically copy one of the attachments in the parent. Ideally, I would like for the child task names to also inherit the file name of the file it inherits from the parent. Hope this makes sense.
Also, can the number of child tasks be the same as the number of attachments but I can also stick to a predefined number if this is not possible.
Can this be done? Thank you so much!
Hi @Alexandra Peia ,
Welcome to the community!
If I understand correct you would like to do the following:
Is this correct?
This can certainly be done, but with some workarounds:
You would use the URL of the attachment to refer to it in the subtask, as sadly it is not possible to copy a specific attachment to the new issue. (You could copy the attachments themselves, but in that case you always copy ALL attachments).
Doc of attachment smart value here.
You can find a similar question here.
It would look something like this:
Please let me know if you have furter questions!
- Tessa
Thank you so much, it works great!
One more detail: can I remove part pf the file name? Let's say all my file names will be something likeL "[B]Cats and dogs.docx" and I would like the task name to only have "Cats and dogs"? Also, can I add anything to the name, a specific word? It's not mandatory but it would help a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can provide filename as you desired in the summary of create issue action.
i am not sure about the splitting the file name.
Hope this helps!.
Chandrababu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alexandra Peia ,
it is possible to manipulate text, you can find information about it here.
you would need to get all text before the last "." and it would look something like this then:
{{file.fileName.substringBeforeLast(".")}}
There are a lot of fun ways to play around with smaert values, and there is a lot of documentation and examples available, I invite you to look and play around with it if you have to do these sort of manipulations more often :)
You can also drop [B] this way is you want and stuff like that. Adding a fixed word to the summary is just by adding the plain text before or after the smart value ;)
Have a great day and if this helped you, please accept my original answer so people can find the solution quicker.
- Tessa
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.
Hi Alexandra,
Welcome to Atlassian community.
Kindly follow below link. Mr. Esteban has mentioned the flow in his answer.
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.