Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Issue With Jira Collector #3409

Open
sreekanthreddypb opened this issue Jul 6, 2021 · 2 comments
Open

Issue With Jira Collector #3409

sreekanthreddypb opened this issue Jul 6, 2021 · 2 comments

Comments

@sreekanthreddypb
Copy link

@rvema I am getting 401 unauthorized error for jira feature collector

2021-07-06 15:00:00,016 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Getting Collector: Jira
2021-07-06 15:00:00,038 [taskScheduler-1] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:28, serverValue:171}] to localhost:27017
2021-07-06 15:00:00,071 [taskScheduler-1] INFO c.c.dashboard.client.RestClient - makeRestCall op=GET url=https://rapids4321.atlassian.net/rest/api/2/issuetype status=401 duration=30
2021-07-06 15:00:00,071 [taskScheduler-1] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:108)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:709)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:662)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:622)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:540)
at com.capitalone.dashboard.client.RestClient.makeRestCallGet(RestClient.java:158)
at com.capitalone.dashboard.collector.DefaultJiraClient.makeRestCall(DefaultJiraClient.java:828)
at com.capitalone.dashboard.collector.DefaultJiraClient.getJiraIssueTypeIds(DefaultJiraClient.java:299)
at com.capitalone.dashboard.collector.FeatureCollectorTask.getCollector(FeatureCollectorTask.java:98)
at com.capitalone.dashboard.collector.FeatureCollectorTask.getCollector(FeatureCollectorTask.java:1)
at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:56)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-07-06 15:01:44,963 [MaintenanceTimer-1-thread-1] INFO org.mongodb.driver.connection - Closed connection [connectionId{localValue:28, serverValue:171}] to localhost:27017 because it is past its maximum allowed idle time.

@sreekanthreddypb
Copy link
Author

sreekanthreddypb commented Jul 6, 2021

My application.properties

dbname=dashboarddb2
dbhost=localhost
dbusername=dashboarduser
dbpassword=dbpassword
dbport=27017
dbreplicaset=false
dbhostport=localhost:27017
server.port=8172

logging.file=./logs/jira.log
feature.pageSize=1000

Delta change date that modulates the collector item task

Occasionally, these values should be modified if database size is a concern

feature.deltaStartDate=2021-03-01T00:00:00.000000
feature.masterStartDate=2021-03-01T00:00:00.000000
feature.deltaCollectorItemStartDate=2021-03-01T00:00:00.000000

Chron schedule: S M D M Y [Day of the Week]

feature.cron=0 */5 * * * *

ST Query File Details - Required, but DO NOT MODIFY

feature.queryFolder=jiraapi-queries
feature.storyQuery=story
feature.epicQuery=epic
feature.projectQuery=projectinfo
feature.memberQuery=memberinfo
feature.sprintQuery=sprintinfo
feature.teamQuery=teaminfo
feature.trendingQuery=trendinginfo

JIRA CONNECTION DETAILS:

Enterprise Proxy - ONLY INCLUDE IF YOU HAVE A PROXY

#feature.jiraProxyUrl=
#feature.jiraProxyPort=
feature.jiraBaseUrl=https://rapids4321.atlassian.net/
feature.jiraQueryEndpoint=rest/api/2/

For basic authentication, requires username:password as string in base64

This command will make this for you: echo -n username:password | base64

feature.jiraCredentials=cmFwaWRzZHhwY3VzdG9tZXJAZ21haWwuY29tOnJhcGlkc191c2VyQDEyMw==

Trending Query: Number of days in a sprint (not-required)

feature.sprintDays=60

Trending Query: Length of sprint week (not-required)

feature.sprintEndPrior=7
#Scheduled Job prior minutes to recover data created during execution time (usually, 2 minutes is enough)
feature.scheduledPriorMin=2

OAuth is not fully implemented; please blank-out the OAuth values:

#feature.jiraOauthAuthtoken=
#feature.jiraOauthRefreshtoken=
#feature.jiraOauthRedirecturi=
#feature.jiraOauthExpiretime=

feature.jiraIssueTypeNames=Story
feature.jiraSprintDataFieldName=customfield_10000
feature.jiraEpicIdFieldName=customfield_10002
feature.jiraStoryPointsFieldName=customfield_10003
feature.jiraTeamFieldName=
feature.collectorItemOnlyUpdate=true
feature.maxNumberOfFeaturesPerBoard=1000
feature.jiraBoardAsTeam=false
feature.refreshTeamAndProjectHours=3

@sreekanthreddypb
Copy link
Author

I am using this collectors in aws instance is any proxy setting needed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant