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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why are my project key and id always empty

Hi,

I am new to the Jira apps, so I thought I give it a go..

But I encounter a problem and I don't understand why.

I have this json uploaded:

"modules": {
"jiraProjectPages": [
{
"url": "/Jira/view.aspx?projectId=${project.id}&projectKey={project.key}",
"weight": 100,
"key": "project-2-iteration",
"name": {
"value": "Link project to Iteration"
}
}
]
}

 

but projectId and projectKey are always empty.

When I inspect the iframe url in the browser I can see that hey are empty..

 

What am I doing wrong?

1 answer

0 votes

Where in your script are you setting the variables for project id and project key?

I did exactly as this page suggested to me:
https://developer.atlassian.com/cloud/jira/software/modules/project-page/

Is it perhaps some kind of rights an user needs before the information is send to the iframe?

Ah, it's part of an app, not a script, sorry, I did not grasp that from the question.

I have not yet coded for Cloud Jira, so I don't know the answer to this one.  It feels like the variables should be fed to your code by the framework it's running in, but I don't know where to look next for them.  Sorry.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,184 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you