...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Module Types provided
...
for Third Part Aggregation
To allow to develop your own ReportElementTranslator, Minyaa Time provides a new Module Types :
- <report-element-translator /> : It allows to define a new ReportElementTranslator
Your Worklog Field Plugin step by step ..
Step 1. Create the plugin skeleton
Here, you will create your plugin skeleton with your preferred solution :
...
- by using the Atlassian SDK : See
...
...
- or manually, if you are aware of its
...
- content
Step 2. Update your Maven POM ...
... related the dependencies
In terms of dependencies, you will need to append Minyaa Time (here for JIRA 7.3.x using Minyaa Time 1.17)
Expand | |||||
---|---|---|---|---|---|
| |||||
|
... related the Maven JIRA Plugin
Since the components implemented in your plugin will have to be loaded by Minyaa Time, you will have to make them exportable.
Here, we assume that your
...
ReportElementTransator have com.yourcompany.jira.report.element
...
as package.
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Step 3. Create your Worklog Fields Classes
Then, you will have to develop your first ReportElementTranslator class ...
...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
and also an abstract implementation : fr.alkaes.myaatm.report.element.AbstractReportElementTranslator.
Expand | |||||
---|---|---|---|---|---|
| |||||
|
When you will implement your own ReportElementTranslator, you WILL HAVE TO use it.
Step 4. Configure your Modules in Atlassian Descriptor
When you have implemented all ReportElementTranslator, you will have to complete the configuration of the Atlassian Descriptor (atlassian-plugin.xml) of your plugin.
You will have to use the module-types previously mentioned ...
ReportElementTranslator Classes Declaration
...
The <report-element-
...
translator />
...
module type allows you to declare your ReportElementTranslator classes. They will be injected in the Log Work Page and Log Work Issue Panel as soon as the plugin is enabled.
Attributes
...
Name | Required | Description |
---|---|---|
key |
...
The unique identifier of the plugin module. |
...
name | A simple Human readable name of the plugin module | |
customfield-type-key |
...
The complete key (Plugin Key and Module Key) of the customfieldtype | ||
class |
...
The Java class which implements this ReportElementTranslator. The class you need to provide must inherit from fr.alkaes.myaatm.report.element.AbstractReportElementTranslator and implement fr.alkaes.myaatm.report.element.ReportElementTranslator. |
Sample Declaration
Here is the declaration of ReportElementTranslator.
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
|
...
|
...
|
Step 5. Build and Deploy
As soon as the declaration of ReportElementTranslator is done, you have to compile the plugin.
It will be ready for deployment with Minyaa Time plugin as dependency.