/
4 - Jira Settings (Eclipse)

4 - Jira Settings (Eclipse)

Eclipse - Jira Settings

Jira / XRay Cloud

Released In

How to connect with Jira/Xray

  • Window → Preferences → Testifi
  • Fill TM Service, Jira Server, Username
    • TM service URL for cloud
    • server URL should be: your Jira Cloud's url
    • username is your username, what you are using for manual log in
  • Jira API-Token


    • to get the API-Token, please log in to your Jira and navigate to Your Profile and Settings (click on your avatar) → Atlassian account settings
    • In the new window, please select Security → Create and manage API tokens
    • On the API Tokens page, press Create API token
    • Give a Label e.g Testifi IDE and press Create
        
    • On the next screen, your API Token appears. This is the only chance to copy it, you won't be able to see it again. Please make sure you copy it and Paste it to IntelliJ Jira API-Token field. Then you can close it
    • After closing it, the only thing you can do is to Revoke it.
      This means, if you have to reinstall IntelliJ you have to use another token by Revoking this one and Create a new one
    • Fill XRay ClientId and ClientSecret
      • Settings → Apps (ask you Jira Admin to provide it for you)

Check jiraProperties file

  • the file should contain the techuser details and the same url as we set for the plugin
  • src/test/resources/jiraPropertiesInject.tto
  • for local execution with Jira, ask your trainer
<inject id="jiraProperties" objects="${@this()}">
  <system-property name="jira:url" value="https://jira..."/>
</inject>
  • if you don't have any other solution, you can add your own credentials to a different file, just for local usage. Do not push any credential details to public repositories.

<inject id="jiraPropertiesLocal" objects="${@this()}">
    <system-property name="jira:cloudUrl" value="https://jira..."/>
    <system-property name="jira:cloudUser" value="user.name@company.com"/>
    <system-property name="jira:password" value=""/>
    <system-property name="jira:apiToken" value=""/>
    <system-property name="jira:xrayAppVersion" value="cloud"/>
    <system-property name="xray:clientId" value=""/>
    <system-property name="xray:clientSecret" value=""/>
    <system-property name="testifi:serviceUrl" value=""/>
</inject>

Jira / XRay Server, Data Center


How to connect with Jira/Xray

Window → Preferences → Testifi or the name given in the previous step


  • Fill TM Service, Jira Server URL, Jira Username and Jira Password → Test Connection if it's ok → Apply
    • TM service URL for server
    • server URL should be: your Jira server's url
    • username and password is your username and password, what you are using for manual log in
    • XRay version should be filled if the user is not an admin user, values can be 3 or 4 (Available from EclipsePlugin_1.3.0.20201202115938)

Check jiraProperties file

  • the file should contain the techuser details and the same url as we set for the plugin
  • src/test/resources/jiraPropertiesInject.tto
  • for local execution with Jira, ask your trainer
<inject id="jiraProperties" objects="${@this()}">
  <system-property name="jira:url" value="https://jira..."/>
</inject>

with XRay version for non-admin Jira users

<inject id="jiraProperties" objects="${@this()}">
  <system-property name="jira:url" value="https://jira..."/>
  <system-property name="jira:xrayAppVersion" value="4"/>
</inject>

if you don't have any other solution, you can add your own credentials to a different file, just for local usage. Do not push any credential details to public repositories

jiraPropertiesLocal.tto
<inject id="jiraPropertiesLocal" objects="${@this()}">
    <system-property name="jira:serverUrl" value=""/>
	<system-property name="jira:serverUser" value="user.name"/>
	<system-property name="jira:password" value="User##Password"/>
	<system-property name="jira:xrayAppVersion" value="serverV4"/>
	<system-property name="testifi:serviceUrl" value=""/>
</inject>

Related content