Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

webhook "issuelink created", empty {issue.key} & {issue.id}

Frédéric Pionnier October 30, 2020

Hello,

I created a webhook triggered by "issue link created" and I don't understand why issue.key & issue.id are empty.

In the webhooks documentation (https://developer.atlassian.com/cloud/jira/platform/modules/webhook/) the compatible context parameters are {project.id}, {project.key}, {issue.key} , {issue.id}

2 answers

1 accepted

0 votes
Answer accepted
Alexis Robert
Community Champion
October 30, 2020

Hi @Frédéric Pionnier , 

 

did you make sure to add a leading $ sign on your variables before ? The webhook URL should look like this :

 

Screenshot 2020-10-30 at 10.36.46.png

 

Let me know if this helps, 

 

--Alexis

Frédéric Pionnier October 30, 2020

Bonjour Alexis, 

Oui, j'ai bien ajouté le $ à mes variables

 

2020-10-30 10_48_41-Webhooks - Jira.png

Alexis Robert
Community Champion
October 30, 2020

Looks like it actually does not work as it should, the same URL used for the event "issue created" does pass the issue key and issue id, but not for event "link created".

However, it does work when using the Automation for Jira webhook action, so I would advise using this instead of the Jira webhook :

 

Screenshot 2020-10-30 at 13.14.33.png

You can use {{issue.key}} and {{issue.id}} in the webhook URL as shown in the screenshot.

It will give you the expected result with issue ID and key :

Screenshot 2020-10-30 at 13.14.43.png

Let me know if this fixes your issue.

 

Thanks, 

Alexis

Frédéric Pionnier October 30, 2020

It looks like the automatic rule is not triggered.
I think there are some broblems in the linked issues

2020-10-30 13_48_17-Project automation - Jira.png 2020-10-30 13_46_59-Project automation - Jira.png

Alexis Robert
Community Champion
October 30, 2020

I think you would need further debugging, I just tried it on my test instance and it works fine.

Did you make sure to create an issue on the INTEGR project, and link 2 issues from this project together ? With your rule configuration it will only work with this project, you would need to do a global rule if you need this on several different projects.

Or maybe you've already gone through the 500 cross-project rules allocated to you ? You can see this in the Automation menu and Usage :

 

Screenshot 2020-10-30 at 17.43.14.png

Frédéric Pionnier November 1, 2020

Hi Alexis,

The rule only works if my 2 issues are in the INTEGR project.

I was trying to link 2 from different projects

Thanks for your help

0 votes
Steven Gemmen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2023

This is now logged as a bug, in case anyone wants to vote/watch it.

https://jira.atlassian.com/browse/JRACLOUD-81512

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events