-
Notifications
You must be signed in to change notification settings - Fork 1.8k
What are the required config for Jira collector #220
Comments
#218 - check this issue - we pretty much configured all the options provided in the sample application.properties for jira collector... but after that ... jira feature collector was giving error for some query - for which we changed the code in jira feature collector... and it was collecting the data... but then again the same or similar issue on the Jira Widget in Hygieia UI... so we are waiting for the error to be clarified./explained/addressed in issue # 218 posted by my colleague... |
@softwareklinic , Thank you for reaching out regarding your use of the Jira Feature Collector. Assuming that your access is sufficient to pull all Jira data, the following error message: There was a problem retrieving or parsing data from the local repository while retrieving a max change date Indicates that your MongoDB collector database for Jira is missing content that would be pulled via the following method chain: To me, this seems that either there are no available change date values generated in your Jira Collector MongoDB collection (less likely), or you are missing a start-date-related property setting for the feature context in your application.properties file (more likely). Can you confirm if you have a |
I have this default value: feature.deltaCollectorItemStartDate=2008-01-01T00:00:00.000000 so I need change it. Thanks |
I have these config now, but still get the same error. Thanks. feature.deltaCollectorItemStartDate=2013-08-01T00:00:00.000000
feature.deltaStartDate=2015-08-01T00:00:00.000000
feature.masterStartDate=2015-12-01T00:00:00.000000 |
You may not have Jira data as far back as 2013, and may account for an error. Please attempt more recent start date configurations and let me know if you see any change. If not, I will have to look into this further. |
I was able to query jira by using jira-cli on the same server, so my jira access credential should be good. Here are all the config I have in application.properties file: spring.data.mongodb.database=dashboard
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.username=db
spring.data.mongodb.password=dbpass
feature.cron=0 \* \* \* \* *
feature.pageSize=1000
feature.queryFolder=jiraapi-queries
feature.projectQuery=ProjName
feature.deltaCollectorItemStartDate=2015-01-01T00:00:00.000000
feature.jiraBaseUrl=http://ourjira.ourcompany.com
feature.jiraQueryEndpoint=rest/api/2/
feature.jiraCredentials=username:password
feature.deltaStartDate=2015-03-01T00:00:00.000000
feature.masterStartDate=2015-03-01T00:00:00.000000" Still got the same error:
|
Thank you for following up on this. The issue you are seeing may be related to a defect found recently affecting the feature collectors, in general. I am looking into this right now and will push a fix as soon as possible. |
thank you. |
Same issue exists in Jira collector as well. |
Definitely see this, yes. It seems to arose out of a change from the Java 1.7 to 1.8 framework for the Hygieia project; it would seem that certain repository query syntax I used is no longer supported in that version. I am actively fixing now; hopefully I will have a fix within the next two weeks. I apologize for any inconvenience this may have caused. |
Just rebuild on a new server with JDK 1.8, I still got the same error. Thanks.
|
@hongluovz , Allow me to clarify: The build was moved to a 1.8 JDK platform, which in turn broke the syntax in the FeatureCollector Until these changes are made, the FeatureCollectors will not build with either 1.7 or 1.8 and are broken. I am working quickly to resolve these issues in the code. |
@hongluovz , As a follow-up, I wanted to let you know that a fix for this issue should be coming shortly. I have pushed a fix as a pull request to fix the Feature collector compatibility issues. Once it is fully validated, it should be pulled into Master. You can view the pull request at the following link: #253 |
@amp5208 , Is this issue got fixed.? |
I am getting this error, can you please help.?
|
@Wills2607 , Thank you for reaching out. A fix has been provided in the above-noted pull request, but is not fully validated/merged yet. Please check back when it is validated and merged. The issue you are seeing is related to the defect or that you are missing a delta start date entry in your property file for the feature collectors. |
Still same issue. Delta Date values in my properties file. feature.deltaStartDate=2016-01-01T00:00:00.000000
feature.masterStartDate=2016-01-01T00:00:00.000000 |
Are you seeing the issue still with the most recent pull requested version referenced above? As mentioned, there is a defect fix that is currently being implemented which may fix your issue. |
Yes - I have download from master repo yesterday, but still I am getting the same error. |
This defect fix is not yet in master - this may be your issue. It is still under development, but if you want to validate that my defect fixes also fix your issue, please pull and check this forked version for now: https://github.com/amp5208/Hygieia |
Thank you, that got fixed. now I am getting different error.
|
can I have the working sample properties file ? |
amp5208 : can you pl help me if any thing wrong with jira collector properties file.Properties file:- feature.pageSize=1000
#
feature.queryFolder=jiraapi-queries
#
feature.storyQuery=story
feature.epicQuery=epic
feature.projectQuery=
feature.memberQuery=
feature.sprintQuery=
feature.teamQuery=
feature.trendingQuery=
#Jira
feature.jiraProxyUrl=
feature.jiraProxyPort=
######################
#
#
feature.sprintDays=60
#
feature.sprintEndPrior=7
######################
#Scheduled
feature.scheduledPriorMin=2
#Delta
#feature.deltaCollectorItemStartDate=2015-03-01T00:00:00.000000
feature.deltaCollectorItemStartDate=2008-01-01T00:00:00.000000
######################
#Spring
spring.data.mongodb.database=xxxx
spring.data.mongodb.host=xxxxxx
spring.data.mongodb.port=xxxxxxx
spring.data.mongodb.username=xxxxxxxx
spring.data.mongodb.password=xxxxxx
#Jira
feature.jiraBaseUrl=http://xxxx.com
feature.jiraQueryEndpoint=rest/api/2/
feature.jiraCredentials=xxxxxx:xxxxxxx
#feature.jiraOauthAuthtoken=oauth,
#feature.jiraOauthRefreshtoken=oauth,
#feature.jiraOauthRedirecturi=uri.this.is.test:uri
#feature.jiraOauthExpiretime=234567890987
######################
#Chron
feature.cron=0
#StartDate
feature.deltaStartDate=2015-03-01T00:00:00.000000 |
@amp5208 - Any update on this issue? |
@Wills2607, Your issue is likely now that you have not updated your property files to handle for the new Jira configurations available in that version. Please see the following link and ensure that you have the following feature.jira* properties: https://github.com/amp5208/Hygieia/blob/master/jira-feature-collector/src/main/resources/jira-feature-collector.properties feature.jiraIssueTypeId=
feature.jiraSprintDataFieldName=
feature.jiraEpicIdFieldName= Additionally, I noticed in your above-noted property file that your Jira credentials property was malformed. Jira credentials should be in username:password format, converted to a base64 string. Please verify and try again. Note: You can convert to a base64 string easily with a Mac using the following command: echo "username:password" | base64 |
@amp5208 Should we use applicattion.properties file to configure these attributes I instead of using jira-feature-collector.properties? I finally got some jira projects back from our jira server, but always got only 5 projects although we have a lot more. These 5 projects were also duplicated many times in mongodb. #Convert above username:password into e64 bit string
feature.jiraCredentials=U1ZDLWh5Z2llaWEtamlyYTplVDIK
#In-built folder housing prepared REST queries (required)
feature.queryFolder=jiraapi-queries
#Jira API Query file names (String template requires the files to have .st extension) (required)
feature.storyQuery=story
feature.epicQuery=epic
feature.projectQuery=projectinfo
feature.memberQuery=memberinfo
feature.sprintQuery=sprintinfo
feature.teamQuery=teaminfo
feature.trendingQuery=trendinginfo" Thanks. |
So long as you run the Jar with the name and location Springboot -D flags to reference your properties file, it does not matter if you place these arguments in the global application.properties or in a local jira-feature-collector.properties file. However, please note, we are still fixing some bugs with this version that you are attempting to work with; until it is merged with master, it is considered volatile. In particular, this working version is seeing the issue you described, where duplicate ScopeOwners (e.g., projects) will appear. Lastly, you may want to remove the 64bit encoded string in your last comment... |
Fix is ready for your originally-noted issue - pending merge of #253 pull request before closing this issue. Once merged, please pull from master and use any new property file settings noted in the Feature content read-me's. |
This issue has been fixed. @tabladrum or @amitmawkin , Please feel free to close this issue. |
Hi, But, after selecting a project and saving the widget, it displays as SPRINT: [NO SPRINT AVAILABLE] and everything with '0' value. Would like to understand what would i have missed in the properties file. Please HELP !!! Thanks, |
@SubramaniMurthy , Thank you for reaching out, and I apologize for the delay. I noticed this, myself, after a revert and re-merge activity that happened recently. I believe that something in the API and/or Core was not properly pushed upstream during a pull request merge. I plan on following up with this item as soon as possible and as soon as priorities allow me. To verify, however, can you confirm with me your data within your MongoDB store? Are you seeing data that should other wise map to the following scenario: An active Issue mapped to a status, mapped to an active Project, that is mapped to an active, in-progress Sprint? To validate this in the data, please check you feature MongoDB collection based on your Jira collector ID. |
@SubramaniMurthy, This issue has been continued in the following Issue post: #276. I have also provided a concise "working" property example in that post. Please reference that post for more information. @tabladrum , This post can be closed in lieu of the related issue. |
credential is not working in JIRA , how can resolve |
I provided two main config lines in application.properties:
I got this error when starting the jira collector. What would be the root cause of this error. Thanks.
The text was updated successfully, but these errors were encountered: