Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation - Scheduled Create new Task and link it to Story

Christoph Dynowski March 17, 2023

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.

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Fabian Lim
Community Champion
March 17, 2023

Hi @Christoph Dynowski

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

Christoph Dynowski March 18, 2023

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

Bildschirm­foto 2023-03-18 um 17.31.21.png

 

Bildschirm­foto 2023-03-18 um 17.33.46.png

Agraj Mangal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2023

Hi @Christoph Dynowski  

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

Like # people like this

Suggest an answer

Log in or Sign up to answer