Hi, I try "next-gen project", when I create main "Epic" and other "Tasks" I try to add all list of keys (Tasks) for created "Epic".
issue_oiptions_for_add_task = {
'project': {'key': self.project_key},
'summary': self.config['Epic']['summary'],
'description': self.config['Epic']['description'],
'issuetype': {'name': 'Epic'}
}
new_issue = self.jira.create_issue(fields=issue_oiptions_for_add_task)
self.epic_id = new_issue.id
issue_oiptions_for_add_task = {
'project': {'key': self.project_key},
'summary': task['summary'],
'description': task['description'],
'issuetype': {'name': 'Task'}
}
new_issue = self.jira.create_issue(fields=issue_oiptions_for_add_task)
self.issue_keys.append(new_issue.key)
and after that:
self.jira.add_issues_to_epic(epic_id=self.epic_id, issue_keys=self.issue_keys)
output:
response text = {"errorMessages":["gh.epic.error.not.found"],"errors":{}}
Hi!
Have you fixed that error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved this issue with update created tickets one by one
new_issue.update(fields={
'parent': {'id': self.epic_id}
})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
j.create_issue(
project='YOUR_PROJECT',
parent={'id':self.epic.id},
...
)
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.