...
Expand | ||
---|---|---|
| ||
Let’s use a copy of new Custom component (Create a Component ) and name it ‘Confluence adapter’ Make a copy and edit… |
Expand | ||
---|---|---|
| ||
Let’s say git@bitbucket.org:interfaceware/atlassian (see Create a library |
Expand | ||
---|---|---|
| ||
For instance: |
...
Expand | ||
---|---|---|
| ||
Let’s call our new API method ATTLgetDescendants. We can rename ATTLcustom into ATTLgetDescendants and to rewrite its content. This method will returns all pages in a space. |
Expand | ||
---|---|---|
| ||
Sometimes an API method would require a parameter which can be discovered only programmatically. In our example of Confluence Adapter this is Confluence Space Id parameter, which isn’t the same as a Space Key above. The API method ATTLgetSpaceId will help us to discover this value. Let’s create new Lua file, name it ATTLgetSpaceId and write its content. |
...
Expand | ||
---|---|---|
| ||
Add Help files to explain what parameters your custom the methods expect. Other users will appreciate this! |
...