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

JIRA Collector - Unable to fetch data into feature collection #3463

Open
AD1913 opened this issue May 4, 2022 · 2 comments
Open

JIRA Collector - Unable to fetch data into feature collection #3463

AD1913 opened this issue May 4, 2022 · 2 comments

Comments

@AD1913
Copy link

AD1913 commented May 4, 2022

Hi,

I am trying to configure Jira collector to fetch the stories into MongoDB. Code is able to connect to the jira instance and it is retrieving data only into scope and team collections but no data is being retrieved into feature collection.

Following is my application.properties file, there is no error in the logs, is there anything else that needs to be configured?

server.ssl.enabled = false
dbname=sampledb
dbhost=localhost
dbport=27017
dbreplicaset=false
dbhostport=[host1:port1,host2:port2,host3:port3]
dbusername=testuser
dbpassword=xxxx
logging.file=./logs/jira.log
feature.pageSize=100
feature.deltaStartDate=2016-03-01T00:00:00.000000
feature.masterStartDate=2016-03-01T00:00:00.000000
feature.deltaCollectorItemStartDate=2016-03-01T00:00:00.000000
feature.cron=0 * * * * *
feature.queryFolder=jiraapi-queries
feature.storyQuery=story
feature.epicQuery=epic
feature.jiraProxyPort=9000
feature.jiraBaseUrl=https://jira.xxx.xxx/
feature.jiraQueryEndpoint=rest/api/2/
feature.jiraCredentials=xxxxxxxxx
feature.jiraOauthAuthtoken=
feature.jiraOauthRefreshtoken=
feature.jiraOauthRedirecturi=
feature.jiraOauthExpiretime=
feature.jiraStoryIds[0]=20
feature.jiraStoryIds[1]=6
feature.jiraEpicId=5
feature.jiraIssueTypeNames=Story,Epic
feature.jiraSprintDataFieldName=customfield_XXXX
feature.jiraEpicIdFieldName=customfield_YYYY
feature.jiraStoryPointsFieldName=customfield_ZZZZ
feature.jiraTeamFieldName=project
feature.collectorItemOnlyUpdate=true
feature.maxNumberOfFeaturesPerBoard=1000
feature.jiraBoardAsTeam=true
feature.refreshTeamAndProjectHours=3
lastRefreshTime=0
lastExecuted=0

Logs:
2022-05-03 17:25:07,912 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Project Data Collected 2150 12s
2022-05-03 17:25:08,049 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Board Issues Refreshed 0s
2022-05-03 17:25:08,052 [taskScheduler-1] INFO c.c.d.collector.FeatureCollectorTask - Collected 12722 teams and 2150 projects
2022-05-03 17:25:08,055 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 543s
2022-05-03 17:25:08,055 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished running Collector=Jira timeTaken=543980 collectorItems=0
2022-05-03 17:26:00,000 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Getting Collector: Jira
2022-05-03 17:26:00,186 [taskScheduler-1] INFO c.c.dashboard.client.RestClient - makeRestCall op=GET url=https://xxx.xxx.xxx/rest/api/2/issuetype status=200 duration=180
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Starting Collector=Jira
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - https://xxx.xxx.xxx/
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - -----------------------------------
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.FeatureCollectorTask - JIRA Collector is set to work in Board mode
2022-05-03 17:26:00,193 [taskScheduler-1] INFO c.c.d.collector.FeatureCollectorTask - Hours since last run = 0. Collector is only collecting updated/new issues.
2022-05-03 17:26:00,195 [taskScheduler-1] INFO c.c.d.collector.CollectorTask - Finished 0s

@AD1913
Copy link
Author

AD1913 commented May 6, 2022

Hi,
Any inputs on this is really helpful?

As suggested in few other forums, tried with feature.jiraTeamFieldName as blank and with Any but that did not help. I do not see any teams field in the rest api output.

Data is getting populated in scope, teams and collectors collections but not in feature collection.

@scchaitha
Copy link

Yes I found the same issue as well. Any leads is appreciated.

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

2 participants