SpotiByeAds icon indicating copy to clipboard operation
SpotiByeAds copied to clipboard

JIRA Collector - Unable to fetch data into feature collection

Open AD1913 opened this issue 2 years ago • 2 comments

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 avatar May 04 '22 01:05 AD1913

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.

AD1913 avatar May 06 '22 00:05 AD1913

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

scchaitha avatar May 11 '22 21:05 scchaitha