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.
Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...
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
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events