Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

remove issue link

I want to remove  issue link from issue A, so I can create after that new issue link with another issue(B)(replacement)

 

the goal is :

to replace the issue A with issue B

3 answers

0 votes
Fazila Ashraf Community Leader May 26, 2021

Hi @Nouf_Alshabanat 

Could you elaborate the problem you are facing in doing so?

You can delete the issue link from the ticket and link it to the other ticket from UI? Are you seeing any errors?

I want to remove the issuelink from the workflow(groovy)

0 votes
John Funk Community Leader May 26, 2021

Hi Nouf,

We will definitely need EXACT steps that you are wanting to accomplish. I think you are wanting to use some type of automation or process in a workflow transition to remove a link on an issue. And then possibly add a new link based on some type of information. But all of your comments are very vague. 

Automation for Jira could very well do what you need to do, but we must have more information. 

I try the automation rule it works very well but unfortunately it's work only with admin permission

 

thank you @John Funk 

the idea is to update the exist issue that is linked already to the issue, with new issue 

unfortunately, there is no update method to do this for me , I think to do this is to remove the exist then create again to the new issue

 

 

(in workflow script runner(by groovy))

the steps: 

step1:

check for issues that are link to [x issue name type] 

step2:

If there some issue that is link to x, remove it then create new issue link with the new issue,

if the result of step1 is null? create link directly

 

@John Funk @Fazila Ashraf 

I just check this documentation and I found this

 

    • removeIssueLink

      void removeIssueLink(IssueLink issueLink,
                           ApplicationUser remoteUser)
      Removes a single issue link We do not check for permission here. It should be done before this method is called. For example, in the action.
      Parameters:
      issueLink - the issue link to remove
      remoteUser - needed for creation of change items
      Throws:
      IllegalArgumentException - if the supplied issueLink is null.

 

 

but what does they mean by issueLink?

 

https://docs.atlassian.com/software/jira/docs/api/7.2.8/com/atlassian/jira/issue/link/IssueLinkManager.html#removeIssueLink-com.atlassian.jira.issue.link.IssueLink-com.atlassian.jira.user.ApplicationUser-

John Funk Community Leader May 27, 2021

issueLink is the field that contains the linkage. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

171 views 6 7
Read article

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