Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,480
Community Members
 
Community Events
176
Community Groups

Incoming webhook: remove issuelink

Edited

Hi guys,

 

I need to link/unlink issues via an Incoming webhook trigger.

For adding issue links, I currently use 'Edit issues' action with the following additional fields:

{
    "update": {
        "issuelinks": [
         {
            "add": {
                "type": {
                    "id": "{{webhookData.issuelinktype}}"
                 },
                 "outwardIssue": {
                    "key": "{{webhookData.link}}"
                  }
              }
        }
        ]
    }
}

However, 'remove' is not supported.

I checked the unlink issues action, but I cannot use smart values for the issuelinktype (I have to determine this!) - otherwise I would have to provide a webhook for each possible issuelinktype.

Any other possibilities I missed?

Best, J.

1 answer

0 votes

Hi @Jasmin Müller 

Have you already resolved this?

If not, the only way I found to remove things from list fields (e.g. Component, Labels, Version, Links) is to treat them like strings, and...

  • join to convert to a delimited string, such as CSV
  • use string functions and RegEx to remove the target value(s)
  • as needed, split back into a list before updating a field

 

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events