Hello ,
I am building a simple agent that uses Jira Cloud connector lets you manage Jira Cloud issues . I keep running into the error below.
ValueError: Request error: 403 Client Error: Forbidden for url: https://connectors.googleapis.com/v1/projects/adk-crashcourse/locations/us-central1/connections/jira-connect?view=BASIC
I have tested my Jira Connector (Integration Connector) and it works in Google Cloud to create new tickets in Jira. I have created the ExecuteConnection (Application Integration) as requested. My code is using Vertex AI .
tool.py file below
from google.adk.tools.application_integration_tool.application_integration_toolset import ApplicationIntegrationToolset
connector_tool = ApplicationIntegrationToolset(
project="adk-crashcourse", # TODO: replace with GCP project of the connection adk-crashcourse-461018
location="us-central1", #TODO: replace with location of the connection
connection="jira-connect", #TODO: replace with connection name jira-iowa jira-central
entity_operations={"Issues": ["GET", "LIST"]},#empty list for actions means all operations on the entity are supported.
#actions=["action1"], #TODO: replace with actions
#service_account_credentials='{...}', # optional
#tool_name="JIRATool",
tool_instructions="Use this tool when an issue in JIRA has to be searched"
)
agent.py file below
from google.adk.agents import Agent
from .tools import connector_tool
#Create the root agent
root_agent = Agent(
name="JIRASearchAgent",
model="gemini-2.0-flash",
description="This agent helps search issues in JIRA ",
instruction="""
Use this agent to call an integration to search for issues in JIRA
""",
tools=connector_tool.get_tools(),
)
The picture of the error I am getting
It is a 403 error and I was checking the documentation could this be a permission issue . I have given my service account for the jira connector all the roles required and I can think of but I keep getting the same error .
Please advice if possible . I feel it is a small fix I am missing .
Hello ,
I am building a simple agent that uses Jira Cloud connector lets you manage Jira Cloud issues . I keep running into the error below.
ValueError: Request error: 403 Client Error: Forbidden for url: https://connectors.googleapis.com/v1/projects/adk-crashcourse/locations/us-central1/connections/jira-connect?view=BASIC
I have tested my Jira Connector (Integration Connector) and it works in Google Cloud to create new tickets in Jira. I have created the ExecuteConnection (Application Integration) as requested. My code is using Vertex AI .
tool.py file below
from google.adk.tools.application_integration_tool.application_integration_toolset import ApplicationIntegrationToolset
connector_tool = ApplicationIntegrationToolset(
project="adk-crashcourse", # TODO: replace with GCP project of the connection adk-crashcourse-461018
location="us-central1", #TODO: replace with location of the connection
connection="jira-connect", #TODO: replace with connection name jira-iowa jira-central
entity_operations={"Issues": ["GET", "LIST"]},#empty list for actions means all operations on the entity are supported.
#actions=["action1"], #TODO: replace with actions
#service_account_credentials='{...}', # optional
#tool_name="JIRATool",
tool_instructions="Use this tool when an issue in JIRA has to be searched"
)
agent.py file below
from google.adk.agents import Agent
from .tools import connector_tool
#Create the root agent
root_agent = Agent(
name="JIRASearchAgent",
model="gemini-2.0-flash",
description="This agent helps search issues in JIRA ",
instruction="""
Use this agent to call an integration to search for issues in JIRA
""",
tools=connector_tool.get_tools(),
)
The picture of the error I am getting
It is a 403 error and I was checking the documentation could this be a permission issue . I have given my service account for the jira connector all the roles required and I can think of but I keep getting the same error .
Please advice if possible . I feel it is a small fix I am missing .