0
 Followers
3
 Likes

Name in JSON for REST structure attributes configurable at runtime

Integration
Not right now

Some REST API providers (like JIRA Cloud for example) use dynamic attributes in the JSON data. These are in the case of JIRA Cloud linked to mandatory "custom" attributes related to objects like Epic and Story. The JSON name for these attributes varies in function of the JIRA Cloud environment instance, making it impossible to configure a REST service using the API once for different environments. 

In the example above, the Structure Attribute EpicName is named customfield_10002 for one environment and has a different sequence number for another cloud instance of their service. 

It would be helpful to have the Name in JSON configurable via an expression instead of being hard coded.

Created on 24 Mar 2017
Comments (2)

Is it possible to send us a documentation link for the API?

As a workaround you can replace the names in the JSON in the request/response using the OnBeforeRequest/OnAfterResponse callbacks.

Changed the status to
Not right now


Hi Adrian,


Sorry for the late reply, but we are not planning on delivering this in the near future.


Although this makes sense, with the upcoming new features that we have in mind and since you have a workaround like João Amorin said, we currently don't have plans to tackle this in the near future.


Nonetheless, thank you very much for your idea and keep it coming.

If you believe we missed some context that would change our perception about it, please give us more details about why you would need this and for what is the use case.


 Thanks!

views
360
Followers
0