Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Client must be authenticated to access this resource

Groovy Script to run select query to an external db from Script Console is showing error as below

Client must be authenticated to access this resource

Although db login credentials are provided in the script

On the Jira server, via sql studio able to login to this external db schema using same credentials.

But still there seems to be this error is caused by some access issueErr.JPG

 

1 answer

0 votes

That looks like an error in JIRA, rather than your script.  It suggests your admin access to the console script has timed out or ended before the script is finishing.

New Error occurring now as below

2017-05-23 10:44:35,621 WARN [common.UserScriptEndpoint]: Script console script failed: 
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at Script15.run(Script15.groovy:6)

FYI, sql jar - sqlite-jdbc-3.7.2.jar is contained in below 2 foders, both are same

D:\JIRA\atlassian-jira\WEB-INF\lib
D:\JIRA\lib

Is the jar has to be replaced with -  " sqljdbc4. jar " ?

If yes, where this has to be updated ?

In which Jira config file ?

Appreciate your help.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you