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

Incoming webhook: remove issuelink

Jasmin Müller November 9, 2020

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.
December 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