I am trying to get issues from multiple servers, Links exist between servers jira1.abc.com and jira2.abc.com. When I run this I get issues links only from jira2. Is there anyways I could get it from other server ?
from jira import JIRA
jira = JIRA('https://jira2.abc.com')
issue = jira.issue('QAD-9325')
links = issue.fields.issuelinksfor link in links:
if hasattr(link, "outwardIssue"): outwardIssue = link.outwardIssue
print("\tOutward: " + outwardIssue.key)
if hasattr(link, "inwardIssue"): inwardIssue = link.inwardIssue
print("\tInward: " + inwardIssue.key)
Hi @Sathesh Balakrishnan Manohar,
You'd have to specify two jira variables.
jira1 = JIRA('https://jira1.abc.com')
jira2 = JIRA('https://jira2.abc.com')
issue1 = jira1.issue('QAD-9325')
issue2 = jira2.issue('QAD-9325')
Or do you mean external links?
QAD-9325 exists only in "jira2.abc.com", and it has multiple jiras that it blocks which are in "jira1.abc.com" .I will not be able to use two jira variables because QAD-9325 on jira1 would throw an error, because it doesn't exist there.
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.