Establishing a Connection
The objects available within our connector are accessible from the "cdata.JiraAssets" module. To use the module's objects directly:
- Import the module as follows:
import cdata.JiraAssets as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("User=MyUser;APIToken=myApiToken;Url=https://yoursitename.atlassian.net")
Connecting and Authenticating to Jira Assets
Jira Assets supports connecting and authenticating via the APIToken.To generate an API token:
- Log in to your Atlassian account.
- Navigate to Security > Create and manage API Token > Create API Token.
After you have generated the API token, set these parameters:
- AuthScheme: APIToken.
- User: The login of the authenticating user.
- APIToken: The API token you just generated.