Conditions do not work for jiraProjectPages

Hi

I am working on creating a new JiraProjectPage which should be be displayed only on a particular project’s left navigation.

Below is my app-descriptor. The problem is that the link does not display for the right project if I enable the conditions. If I remove the conditions then I am able to view the link correctly

{
  "key": "My-Jira-Integration",
  "baseUrl": "${addon.base-url}",
  "name": "My Connect Jira Integration",
  "description": "My Connect Jira Addon",
  "authentication": {
    "type": "jwt"
  },
  "modules": {
 
  
  "jiraProjectPages": [
      {
        "url": "/jira/lv-release?projectId={project.id}",
        "iconUrl": "/jira/img/my-release.svg",
        "weight": 100,
        "name": {
          "value": "My Releases"
        },
        "key": "my-release-page",
        "conditions": [
                    {
                        "condition": "entity_property_equal_to",
						"params": {
							"entity": "project",
							"propertyKey": "key",
							"value": "LVCON"
						}
                     }
         ]
      }
    ]
  },
  "lifecycle": {
    "installed": "/jira/installed",
    "uninstalled": "/jira/uninstalled"
  },
  "scopes": ["read", "write","project_admin"]
  
}

Is there something that I am not doing correctly? entity project has the property key .

Any help or suggestions around this are appreciated.

Regards
Tejas

Hi @tshah,

Does this only happen with jiraProjectPages module? In order to check what the value is of the said entity property, what does the call to /rest/api/2/project/LVCON/properties/key return?

Cheers,
Ian

1 Like