Is it possible to use context parameters in condition value?

Hi

I have a question as in the topic.

I've just wanted to use condition parameters to determine when my web panel should be visible.
I've decided to use condition parameters with stored property
https://developer.atlassian.com/static/connect/docs/latest/concepts/conditions.html#static-condition-parameters

 

Example:

- Property
PROPERTY_KEY = myproperty
VALUE = {"id":"10002","key":"PROJECT KEY","name":"Project Name"}

 

- Condition

{  
   "condition":"entity_property_equal_to",
   "params":{  
      "entity":"addon",
      "propertyKey":"myproperty",
      "objectName":"id",
      "value":"{project.id}"
   }
}

 

When I set value in condition to "10002" everythings works fine, but when I try to use context parameters, I get an exception during installation:

Installation failed. The add-on includes a web fragment condition (entity_property_equal_to) with invalid parameters (Could not parse the value provided).

So, Is there any way to use context parameters in condtion?


Best Regards
Rafał Janiczak

1 answer

1 accepted

2 votes

Unfortunately the ability to use context parameters in entity_property_equal_to condition values has not yet been implemented; but it is an open issue: https://ecosystem.atlassian.net/browse/AC-1608

 

I have added this Atlassian Answer to the issue. Please feel free to watch, vote and comment on that issue. I can tell you that, at this point in time, it is not on our list of short term priorities. However, if it gets enough votes then that could change.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

394 views 1 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot