javarallycode-rally

Java Rally api lookback api authentication


getting the exception

com.rallydev.lookback.LookbackException: Authorization failed, check username and password

I've API key also. but I dont how to use with lookback api

Below is my code

LookbackApi lookback = new LookbackApi()
                    .setServer("https://" + "rally1.rallydev.com")
                    .setProxyServer("http://" + "proxyserver" + ":" + "proxyport")
                    .setProxyCredentials("testuer","testpass")
                    .setWorkspace("/workspace/1234");
            LookbackResult  result = lookback.newSnapshotQuery()
                    .addFindClause("_TypeHierarchy", -51038)
                    .execute();

Any suggestions please?


Solution

  • The lookback toolkit was an experimental toolkit and is not fully supported. https://github.com/RallyTools/Rally-Lookback-Toolkit

    I doubt it contains support for api keys. According to the docs though you should just use setCredentials

    https://github.com/RallyTools/Rally-Lookback-Toolkit#rally-lookback-api-toolkit

    .setCredentials("username", "password")