We have a very simple Insight schema. Only two objects Person and Receipt.
Person contains basic details like First Name, Last Name, Address etc.
Receipt contains a reference to Person (to know who paid) amount and date.
To be able to print receipt we created a template and used Insert Placeholder for the information from both Person and Receipt objects (First Name, Last Name, Address, amount and date etc)
The problem is when we try to print a receipt the information from Receipt object is there, but all the information from Person object is empty.
Any idea what we are dong wrong ? Why it allows us to use data from Person when we use Insert Placeholder, but not showing it ?
The label template is associated with the entire schema. So ALL attributes are available.
But you can see some warnings in the section "Adding Placeholder" in the documentation.
ou can use the Insert placeholders drop-down to add any of the attributes available for this object schema. One of the first attributes is "Attribute list" – when selected, it will add an additional configuration when printing a template, where you can select the attributes you want.
Some things to watch out for
- Some attributes may be specific to certain object types. Using the same template for other object types will render the text as "No value" on the printed labels.
- Additionally, if you have a language setting enabled for Insight, for example Spanish, the "No value" text will be printed as "Sin valor". Well, at least everybody will get it.
Looks exactly like what you are describing.
I played around to see if the label template placeholder supported the "dot notation" to drill down into an attribute that refers to an object and retrieve an attribute from that object. But it doesn't seem to work.
I think this is basically saying that you can't get attributes from other objects when printing a label for the current object.
You would have to replicate data from your user into your receipt object if you need to include that in the label template.
I don't think the mindville/atlassian team had your use case in mind when they designed the label template feature.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event