I have the csv file of multiple task and I want to upload it in one user story in rally.
However, I am bit confused what would be the formatting required to do that. you just need Name and Work product to upload task (I checked on internet). I have attached the task which i want to upload and also attached the error screenshot as well.Is format of csv file is correct?
I am new to rally.
Image I want to upload
The Error I am facing
I think the issue is potentially caused by the quotation marks, i.e. "Work Product" is not a column name whereas Work Product is. For example, when I test a csv upload file in Notepad it shows like this:
Work Product,Name
US1,Test task name
The fields you're using should be fine, refer https://techdocs.broadcom.com/us/en/ca-enterprise-software/agile-development-and-management/rally-platform-ca-agile-central/rally/reporting-top/importing-and-exporting-data.html
Related
I am working on a rails engine that uploads a excel file, validates it and if there is no error than it will save it to database.
Now when ever a user mounts the engine and than go to the route provided by engine. He will have a form to upload the excel file. There are two buttons on page, i.e, upload and validate.
Once a user choose the file and when he click on upload i want that file only gets uploaded and don't get saved in db. Once i get the message the file is uploaded successfully, than i will validate the file. If it is a valid excel file with valid data than it will be saved into db. Now i am not getting how to go about it. I have seen this Railscasts video on uploading csv and excel file but here he is performing validation and save operation with import action but i want validation and save operation when user clicks on validate action. This Questions seems similar to my problem but i am not getting how do i access that uploaded file. I don't want that file to be saved in database. I mean when a user click on upload button that file gets only uploaded not saved. Than i will validate that file and save it's content to db.
This may seem very easy and simple questions for some experts but i am very new to rails and i am not sure how to go about it.
Someone please help me with a sample code, so that i can understand the workflow. Also note that both upload and validate actions are on same page. So when a file gets uploaded it needs to be stored somewhere temporarily, this is the first problem i am facing. I can do all the task if someone can tell me workflow with a sample code about uploading excel file. I am only having problem here that as both upload and validate action are on same page, so after upload request it needs to be on that page so that i can validate that file.
Any help would be appreciated, I am very beginner at rails and really confused here.
Two options:
Write code to upload the file and save to DB with a validated column set to false. Then the 'validate' button will locate the unvalidated file, validate it and set validated to true. You could have a periodic job deleting unvalidated files of a certain age. If you do this, use a helper gem like Paperclip.
Forego file upload frameworks and just manually save uploaded files to Tempfile.new 'spreadsheet'. This guide takes you through how to do that. Save that filename to session and use it to validate at a later point. When you're finally ready to persist to DB, again, consider using a helper gem.
I have a Model called file.rb that handles a files data table. This was done so that I can upload excel files from a file index.html.erb, and have the file name stored, see who uploaded the file, when it was created, etc(just tracking the files). These Excel files have many rows and each row have a bottle object with many attributes. During the create method, after save, I send the uploaded file to another model `bottle.rb'.
The bottle.rb model handles opening the Excel file and importing the information from the Excel file into the bottles data table.
I would like to be able to create an audit log with a message telling me success or failure of an uploaded excel file. Once the file passes the validations, I would like to see how many updates and new inserts to the bottles table. And be able to see this in the view where I upload the Excel file. I appreciate any helpful tips! I made an activity feed but for the entire application, but I am unsure how to go about to do this task.
I’m having an issue uploading my the attached csv file to my parse app. It says :
line 22515, column 0: wrong number of fields in line
for every upload I do. Including when I upload a slightly smaller csv file (which ironically doesn't have a line 22515 in it).
Any tips/help?
I think 22k is the max excel rows limit in old excel versions I believe till 2010, maybe that has something to do with this...
I added a link-type with Forward=Task and Reverse=User Story using a Dependency. I uploaded this to my collection successfully.
Now I delete the link type and upload the template successfully again.
When I now want to create a new link type containing "Task" as Forward I get the error:
TF201006: The link type NEWNAME conflicts with link type OLDNAME. The name Task is already being used. (type ProvisionValidationException)
I don't see how to remove the OLDNAME.xml on my TFS because I don't know, where those uploaded templates are stored. Obviously the ProcessEditor will leave those files even if you remove a link type.
I got it. The LinkTypes are uploaded as entries in the LinkTypes-table on the SQL-Server-Database responsible for the team collection you upload the template to. So if you experience the same problems go ahead and delete all items from this table which are added by yourself.
I have a upload text file field, and with it I plan to save the file somewhere and then store the location of the file in a database. However, I want to make sure the file they uploaded is a .txt file, and not, say, an image file. I imagine this happens in the validation step. How does one validate such a thing? Also, how do you get the filename of the uploaded file? I could always just check if it said '.txt' but for future reference knowing how to validate without just the filename would be helpful.
Trying to validate the contents of a file based on the filename extension is opening the door for major hackerdom. It's trivial to change the extension and upload the file.
If you are on a Mac/Linux/Unix-based system the OS "file" command is the standard because it looks inside the file for key bytes that flag file types. http://en.wikipedia.org/wiki/File_(Unix) I'm not sure what's available for Windows, but this might help: Determine file type in Ruby
One way of doing it, the simple way really, would be to pass the file through an image loader, preferably one that handles multiple common formats, and see if it throws an error.
The other way is to manually check the file header for common image format headers. For example, .bmp files start with BM. Other formats have their own specific markings you can use.