Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • Plugins

Content

Problem adding task in Sprint Taskboard

Added by Francisco Gallucci almost 9 years ago

Greetings, I have installed OpenProject 3 in Debian Wheezy with Ruby 2 and the follow plugins:

gem "openproject-plugins", git: "https://github.com/opf/openproject-plugins.git", :branch => "stable"
gem "openproject-help_link", :git => "https://github.com/finnlabs/openproject-help_link.git", :branch => "stable"
gem "openproject-backlogs", :git => "https://github.com/finnlabs/openproject-backlogs.git", :branch => "stable"
gem 'openproject-costs', :git => 'https://github.com/finnlabs/openproject-costs.git', :branch => "stable"
gem 'openproject-global_roles', :git => 'https://github.com/finnlabs/openproject-global_roles.git', :branch => "stable"
gem 'openproject-meeting', :git => 'https://github.com/finnlabs/openproject-meeting.git', :branch => "stable"
gem 'openproject-my_project_page', :git => 'https://github.com/finnlabs/openproject-my_project_page.git', :branch => "stable"
gem 'openproject-pdf_export', :git => 'https://github.com/finnlabs/openproject-pdf_export.git', :branch => "stable"
gem 'openproject-documents', :git => 'https://github.com/opf/openproject-documents.git', :branch => "stable"
gem 'openproject-translations', :git => 'https://github.com/opf/openproject-translations.git', :branch => "stable"

My problem is that when I create a Sprint and go to the Taskboard, everything works great, but when I’m going to add some task to the Story in the board, the dialog doesn’t shows completely, css error I guest, and don’t let me add task, I write the information required: Subject, Assigned To and Remaining Hours. But when I click in the OK Button, nothing happens, just shows me a little dialog with no information at all and don’t let me add anything, I check the output in the terminal and I don’t see any error, so, I have no idea what is going on.

I add 4 screenshots so you can see the problem.

Somebody have the same problem ?

Thanks :)


Replies (3)

RE: Problem adding task in Sprint Taskboard - Added by Francisco Gallucci almost 9 years ago

Update:

Using Firefox and Firebug (god bless it), I see that there is an error in the line 601 of the backlogs JS file, in my project is the file openproject_dir/public/assets/backlogs/backlogs-2d4e6cba4393e52d0242621d2d4c432d.js. This file in the line 601 have:

RB.Task = function(e) {
    return RB.Object.create(RB.WorkPackage, {initialize: function(t) {
            this.$ = e(t), this.el = t, this.$.addClass("task"), this.$.data("this", this), this.$.find(".editable").live("mouseup", this.handleClick), this.defaultColor = e("#rb .task").css("background-color")
        }, beforeSave: function() {
            if (!this.el || !e(this.el).hasClass("dragging")) {
                var t = this.$.find("select.assigned_to_id").children(":selected").attr("color") || this.defaultColor;
                this.$.css("background-color", t), this.$.colorcontrast()
            }
        }, editorDisplayed: function(e) {
            e.parents(".ui-dialog").css("background-color", this.$.css("background-color")), e.parents(".ui-dialog").colorcontrast()
        }, getType: function() {
            return"Task"
        }, markIfClosed: function() {
            this.$.parent("td").first().hasClass("closed") ? this.$.addClass("closed") : this.$.removeClass("closed")
        }, saveDirectives: function() {
            var e, t, i, n;
/* HERE */  return e = this.$.prev(), t = this.$.parent("td").first().attr("id").split("_"), i = this.$.find(".editor").serialize() + "&parent_id=" + t[0] + "&status_id=" + t[1] + "&prev=" + (1 === e.length ? e.data("this").getID() : "") + (this.isNew() ? "" : "&id=" + this.$.children(".id").text()), this.isNew() ? n = RB.urlFor("create_task", {sprint_id: RB.constants.sprint_id}) : (n = RB.urlFor("update_task", {id: this.getID(), sprint_id: RB.constants.sprint_id}), i += "&_method=put"), {url: n, data: i}
        }, beforeSaveDragResult: function() {
            this.$.parent("td").first().hasClass("closed") && (this.$.children(".remaining_hours.editor").val(""), this.$.children(".remaining_hours.editable").text(""))
        }, refreshed: function() {
            var e = this.$.children(".remaining_hours.editable");
            e.toggleClass("empty", e.is(":empty"))
        }})
}(jQuery)

Look the line where I write HERE, in that line is the error, when he trying to do this.$.parent(“td”).first().attr(“id”).split(“_”), occurs the error TypeError: this.$.parent(…).first(…).attr(…) is undefined

Debugging I see that this.$.parent(“td”) gets nothing, and obviously this.$.parent(“td”).first().attr(“id”) is undefined. And this.$.prev() is empty too.

Thats the error, I’ll keep seeing what is happening and try to resolve it.

See the screenshot below.

RE: Problem adding task in Sprint Taskboard - Added by Francisco Gallucci almost 9 years ago

Anybody ?

RE: Problem adding task in Sprint Taskboard - Added by Matt Brown over 8 years ago

I did not look into the Javascript on my browser, but I had the exact same symptom. It was because of my Workflows not being set up properly. Check your global settings Workflows. You should have a Work Package Type called “Tasks” or whatever you have named it. Make sure the various roles (I use Product owner and developer) have workflow access for that Type, check every box off for now. Make sure your role can change the status of the Task Work package to all statuses. Then make sure you Backlogs configuration has the Task Type set to whatever WorkProduct Type you use for Tasks.

Maybe this isn’t the problem you are seeing, but I had very similar symptoms before fixing my workflow like this.

  • (1 - 3/3)
Loading...