How to use documentation template from another project - templates

I'm using enterprise architect 15 to generate documentation via Publish/Report Builder/Generate documentation. There, I see I can use templates:
I want to use a template that I used in another project, but it's unclear to me how to properly export it from another project and import into this one.

You can export and import templates using the Reference Data Import/Export feature.
Export
Configure | Model | Transfer | Export Reference Data
Select the the templates you want to export.
Import
Configure | Model | Transfer | Import Reference Data
Make sure to select the Document Templates dataset to import.
MDG file
An alternative to this import/export is to include the templates in an MDG technology file. See the manual for more info.

Related

m2doc how to export properties of wordx template

is there a way to export properties of the template given in example in the "In-Flight Entertainment System With M2Doc" project, and import them in my owned wordx document ?
Thanks
No but you can make one using the class TemplateCustomProperties. You can also open de feature request by opening a new issue.

How to copy Discovery rules from one templates to another in zabbix

How to copy the discovery rules from one template to another like items and triggers to another template?
This is not supported currently. You might want to vote on the feature request.
If there are many of those, you could look into exporting them to XML, hacking the XML and importing it. This would not be a supported approach and you would be on your own.
Export the template. Use a text editor to find and replace every occurrence of the template name in the exported xml file with the name of the template you'd like to create. Then, import it.

C++ automatic header on emacs

I would like to have a header template for some of my c++ files, edited with Emacs. What I need is a header with the following information:
*/
|-------------------------------------------------------------------
|
| Project: Name_of_proyect
|
| Created on:
|
| Last Modified:
|
| Author: author_name
|
|-------------------------------------------------------------------
*/
I would like to specify the project's and author's name on the template and the dates of creation and last modification to be updated automatically. How can I do this?
You can use library header2.el to do what you want. You can customize the header in various ways. See Emacs Wiki page Automatic File Headers for more information.
I'm using built-in autoinsert package with some customization. Full config is available here. The customization implements replacement of date, header file name, etc.
My templates you can find here.

Autocomplete for import keyword is ommiting file extension

I am having a problem with WebStorm auto complete when using import keyword in JavaScript.
You can see an example here: https://i.gyazo.com/95adbf84c964663f715fc069ba1e1e8a.mp4
Basically when I auto complete following code:
import {loadLevel, loadSprite} from './loaders';
It doesn't add a file extension to loaders, which should look like this:
import {loadLevel, loadSprite} from './loaders.js';
I am using latest WebStorm version, I also tried to Invalidate cache and restarted IDE.
I am using JavaScript ES6 version in settings.
There are no other files called loaders with different extension anywhere else in my project.
If you need any more info, let me know.
Thanks
WebStorm supports completing file name with extension (when using completion in the from part). To enable completing file name with extension, set registry key commonjs.complete.required.filename.with.extension to true :
Open Help | Find Action... dialog
Type Registry, find Registry item in dropdown list and press Enter
Find commonjs.complete.required.filename.with.extension there, tick the checkbox
But this hidden option doesn't affect auto-imports, so, when auto-creating import statement from reference, extension won't be added - WEB-28741

how can I migrate issues from redmine to tuleap

Originally we use Redmine as issue management system, now we are planning to migrate to Tuleap system.
Both system have features to import/export issues into .csv file.
I want to know whether there is standard / simple way to migrate issues.
The main items inside issues are status, title and description.
What are "remaining_effort" and "cross_references" kind of data in remind ?
Since both system can export the csv file, which contains the item header that they needed, some header is different.
It needs scripts to map from one system to another system, code snippet is shown below.
It can work for other ALM system if they don't support from application (I mean migration).
#!/usr/bin/env python
import csv
import sys
# read sample tuleap csv header to avoid some field changes
tuleapcsvfile = open('tuleap.csv', 'rb')
reader = csv.DictReader(tuleapcsvfile)
to_del = ["remaining_effort","cross_references"]
# remove unneeded items
issueheader = [i for i in reader.fieldnames if not i in to_del]
# open stdout for output
w = csv.DictWriter(sys.stdout, fieldnames=issueheader,lineterminator="\n")
w.writeheader()
# read redmine csv files for converting
redminecsvfile = open('redmine.csv', 'rb')
redminereader = csv.DictReader(redminecsvfile)
for row in redminereader:
newrow = {}
if row['Status']=='New':
newrow['status'] = "Not Started"
# some simple one to one mapping
newrow['i_want_to' ]= row['Subject']
newrow['so_that'] = row['Description']
w.writerow(newrow)
some items in exported csv can't be imported back in tuleap like
remaining_effort,cross_references.
These two items are shown inside exported .csv file from tuleap issues.
Had the same issue and the csv solution looked too limited to me:
the field matching between tracker and csv content must fit exactly
you can't import attachments
you can't link artifacts
...
Issues can be extracted from Redmine using REST API or by directly reading the SQL database. Artifacts can be created in Tuleap using the REST API. You "just" need a script in the middle to extract issues from Redmine and then import them into Tuleap.
I created such a script in Python:
It has a plugin approach so that it could import issues/bugs from any bug tracker and later save them to any other bug tracker.
For now it only support extracting issues from Redmine SQL database and export to Tuleap using REST API.
One can extend it (new plugin) to extract issues from other trackers (bugzilla/mantis/gitlab).
One can extend it (new plugin) to generate a Tuleap xml file rather than importing the artifacts using Tuleap REST API (XML being more powerful here).
I ported hundreds of issues from Redmine to Tuleap using this and it was good enough for my needs.
Have a look at https://github.com/jpo38/TrackerIO.