Exlude 'Next-Gen' projects support for Jira Add-on

Hello,

I want to ask is it possible to exclude the ‘Next-Gen’ Projects support for our addon? I’ve tried so far different variants of “jira_expression” conditions added to atlassian-connect.json file. For example:


   {
		      "condition": "jira_expression",
		      "params": {
		        "expression": "project.properties.style !== 'next-gen'"
		      }
		  }

Any ideas?

Best regards,
Philip

1 Like

Hi, @fkasapov,

Currently that’s not possible with Jira expressions, but I’ll look into it and see if we can add the project style information to the project object. I’ll keep you posted.

Best regards,
Krzysztof

3 Likes

Hi again, @fkasapov,

We’ve added the “style” field to projects in Jira expressions, it returns the same string as the REST API. You can now write your condition like this:

{
  "condition": "jira_expression",
  "params": {
    "expression": "project.style != 'next-gen'"
  }
}

Best regards,
Krzysztof

1 Like

Hi @kkercz,

Thank you very much for the fast reaction.

Best regards,
Philip