Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to remove issuelinks from the JIRA id using python jira

Edited

Hi ,

 

I am using JIRA python to update to issue link(duplicate link) for JIRA id and it works fine.

Now i want to remove those issue link from that JIRA id 

 

Any Idea pls

1 answer

1 accepted

0 votes
Answer accepted

I am able to do in using below code

 

#getting issue links

#create JIRA instance
self
.jira = JIRA(basic_auth=(self.jira_username, self.jira_api_token), options={"server": self.jira_server})
#Pass JIRA name and get Issue links
idl=self.jira.issue(jiraid) # passing JIRA name
getIssuelinks=idl.fields.issuelinks #issuelinks
#iterate and delete
for
x in getIssuelinks:
print(x.id)
self.jira.delete_issue_link(x.id) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you