Hello Atlassian Community,
I have a requirement to create an automation with Jira for a newsletter process. I have completed the following tasks:
- Create a new task every week on Thursday (done)
- Insert a template for description and summary (done)
However, I am facing an issue while trying to link the created task to a story. I have tried to use the "Then Create a new" option and selected the "Linked Issues" field. I have tried to provide the story ID or story link, but the automation always fails.
For better understanding, here is an example:
Task 1: Newsletter Week 1/23 is related to Story: Newsletter 2023 Task 2: Newsletter Week 2/23 is related to Story: Newsletter 2023 ...
I would appreciate it if someone could provide me with some hints on what I might be missing. Thank you.
Welcome to the community!
Would you be able to share the screenshot of your rule and audit results?
Is the story always the same? Also, can do you have the permisions to link tickets? (ie.g. can you link them manually?)
Regards,
Fabian
Hello Fabian,
Thank you for the warm welcome, I'm excited to be a part of the community.
Just added the Screenshots of the rule and audit results.
Also, I have the necessary permissions to link tickets manually.
To ensure consistency, it would be great to link the tickets with the same story. Please let me know if you have any further suggestions or questions.
Thanks for the quick response and for any further Input =)
Regards
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The reason linking to "Trigger Issue" is not working as the trigger of the rule is Scheduled and does not contain any issue in its context.
If you always want to link the newly created issue to the same story always you can do so via Advanced JSON as follows
{"update": { "issuelinks": [ { "add": { "type": { "name": "Relates" }, "outwardIssue": { "key": "{{issue.key}}" } } } ] } }
Instead of `{{issue.key}}` smart value you can hardcode it to your story.
See this for details on how to use Advance Field Editing using JSON https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
Hope this helps,
Agraj
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.