Is it possible to use context parameters in condition value?

Rafał Janiczak June 16, 2016

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
Answer accepted
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2016

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 Sign up to answer