Forums

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

How to Access Project Field (ID, Name) Properties in a Custom Jira Plugin Application

Mahesh Ghodke
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!
March 26, 2025

One of my requirements is to access the selected project in the left pane along with board details in the inner page.

I tried using:

import { useProjectContext } from '@forge/ui';

// Use project context to access current project details
const context = useProjectContext();

// Extract project details from the context
const projectName = context.project.name;
console.log("projectName ->", projectName);

Any suggestions?

1 answer

0 votes
Laura Campbell
Community Champion
March 26, 2025

Hi @Mahesh Ghodke and welcome to Community,

I don't have a specific tip to access the project id, but tomorrow there's an ACE about Forge where you might be able to ask a question at the end after the main presentation: https://ace.atlassian.com/events/details/atlassian-atlassian-developers-presents-patterns-for-integrating-forge-with-external-services-forge-dev-den/

Suggest an answer

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

Atlassian Community Events