Hi all,
we are using Jira Service Management with Insight, where we have put user's assets.
I'm looking for a way to generate some company standard documentation based on the data stored in Insight.
I found this plugin:
Is there some way to get data from Insight instead of Jira issues?
I resolved using a scriptrunner postfunction that read data from Insight, perform some logic, replace this data in a template with placeholder using SimpleTemplateEngine class and then attach the resulting document to the issue.
The template is in HTML, in this way the assignee can open directly in the browser and print in pdf (with a pdf printer) if it is necessary.
I would love to hear more about how you replaced data in a template with data from Insight
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brandon,
in the scriptrunner postfunction I used something like this:
def assetListMap = getAssetMapFromInsightList(insightAssetList, insightObjectSchemaId, adminUsername)
def binding = [
data: new Date().format('dd/MM/yyyy') ,
reporter: issue.reporter.displayName,
assetList: assetListMap
]
def engine = new SimpleTemplateEngine()
def template = engine.createTemplate(templateFile.text).make(binding)
<% for (asset in assetList) { %>
<tr><td><%= asset.value1 %> <%= asset.value2 %></td></tr>
<% } %>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It really depends on what you need and how your data is organized.
Insight has some built-in reporting features (though I haven't explored them much) and some REST APIs.
And if you know what you are doing or are adventurous, you could fetch data directly from the db (though that is not generally recommended).
Some of the bigger/expensive reporting solutions like eazyBI might already understand the Insight data and allow you to generate reports.
But most of the more simple/cheap/free ones like the one you linked probably will not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Peter, but I don't want to create a report from Insight tables.
What I want is to create a new word document, or pdf, using a template filled with data from Insight.
For example, I want to give a new employee a new pc, a monitor and a tablet. I need to create a new document with the assets associated with this new user in Insight, give it to him to sign it, and store it in our archive.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use the built-in label template builder.
Create a template the size of a full page of paper and print that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.