Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

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
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 10, 2020

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
AUG Leaders

Atlassian Community Events