Forums

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

How to build automation to have child issues inherit the component in the epic?

michelle.purcell
Contributor
April 10, 2023

I want to create automation that any stories, tasks or sub-tasks inherit the component from the epic when a new issue is created.  I created the automation below but when testing it states no actions performed and the component from the parent epic was not added to the task. 

 

Jira 1 - automation for component.jpgJira 2 - automation for component.jpg

1 answer

1 accepted

1 vote
Answer accepted
J van Leeuwen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

Hi Breno, 

A little bit late but posting this with the hopes that you were able to resolve this and the information will help someone else. 

This is a security feature of web browsers called Same Origin Policy. You cannot make an AJAX call to a URL that is on a different domain than where the JavaScript was loaded from (ie. has the "same origin").

There are a number of ways to work around this, the two most common ones are:

  1. Serve your JavaScript from the remote server, instead of the host server.
  2. Make the remote server respond with the correct Cross Origin Resource Sharing ("CORS")headers that will let the browser relax this security policy.

While I see that you do not want to use CORS, please note for CORS, you'll need to configure Jira's whitelist: Configuring the whitelist. More information on this topic can be found in another community post: Rest call to Jira in Jquery results in error No Access Control

Jennifer 

Suggest an answer

Log in or Sign up to answer