Forums

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

Send project ID with the webhook

Thais de Sousa Lima
March 4, 2026

Is possible send project ID using trigger schedule for send in the weebhook?

2 answers

2 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
March 4, 2026

Hello @Thais de Sousa Lima 

Please show us the entire rule that you have constructed so far.

What is the Project Scope for the rule? Are you using a JQL to select items through the trigger?

Do you want to get the numeric ID for the project or the project Key that appears in the issue keys?

Thais de Sousa Lima
March 4, 2026

I need send the project numeric ID and the project lead numeric ID to N8N for use in integration to send a message to slack.
But I have many projects, so i want create global automation.

Rule.png

Trudy Claspill
Community Champion
March 4, 2026

Are you selecting items in the JQL trigger?

If you are selecting items in the JQL trigger, then the Send Web Request action will be executed for each item selected. In that case as @Aaron Pavez _ServiceRocket_ said the smart value you would use is

{{issue.project.id}}

If you are not selecting items in your JQL then what is your expectation for how this action will be run?

Thais de Sousa Lima
March 4, 2026

So, i created a JQL with a fixed value to issuekey. (Ex: issuekey = TEMP-45). It worked.
But, this is a best pratic?

And another problem, I have 49 projects (spaces) and the solution using fixed value to issuekey is hard to escaled.

Trudy Claspill
Community Champion
March 4, 2026

What is the purpose of the rule? On a scheduled basis you want to send a Web Request per what (project, issue, something else)?

 

0 votes
Answer accepted
Aaron Pavez _ServiceRocket_
Community Champion
March 4, 2026

Hi @Thais de Sousa Lima 

Can you give us a bit more detail on what you want to achieve?

Send the project ID where?

With this API you can get the project ID using the project key:

/rest/api/3/project/{projectIdOrKey}

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

I was playing with sending an email with the IDs and it works with the Create work item.

Haven't found how to make it work with scheduled. The JQL conditions don't work for that. The email is empty.

Here are the smart values for projects:

Standard Project Rule {{project.id}}
Issue-based Schedule {{issue.project.id}}
Project Name (instead of ID) {{project.name}}
Project Key (e.g., "PROJ") {{project.key}}

In your example, since its scheduled, what are you using as an action inside it? a JQL?

ITs easy to send the smart value when the rule runs when a work item its created, since it will be running based on that item and project.

@Trudy Claspill any ideas how to make this work with scheduled?

REgards

Thais de Sousa Lima
March 4, 2026

Hi @Aaron Pavez _ServiceRocket_ 

I try using JQL with a fixed value to the issuekey. It worked, but this is a best pratic?


JQL.png


Body request webhook to n8n:

{
"projectID": "{{issue.project.id}}",
"reportID": "5037998"
}

Aaron Pavez _ServiceRocket_
Community Champion
March 4, 2026

It depends on the outcome you are looking for.

Do you want to send the project id for every work item you have?

to the same URL? its different?

Knowing about what you want to achieve will help us.

Regards

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events