Giter Site home page Giter Site logo

Comments (11)

pogotskaya avatar pogotskaya commented on July 20, 2024

Hi,

Please make sure that your config (JavaScript/Mashups/NumberOfAssignments/NumberOfAssignments.cfg) is looks exactly like this file https://github.com/TargetProcess/MashupsLibrary/blob/master/NumberOfAssignments/NumberOfAssignments.cfg

Best Regards,
Alla

from mashupslibrary.

simonjmartin avatar simonjmartin commented on July 20, 2024

Hi Alla,

The .cfg looks exactly the same - I even tried replacing the text with the version from your link, but it hasn't resolved it. There are no JavaScript errors that I can see either.

from mashupslibrary.

alex-fomin avatar alex-fomin commented on July 20, 2024

What version of TP do you have?

from mashupslibrary.

simonjmartin avatar simonjmartin commented on July 20, 2024

I'm using: Build 2.23.1.21592 / 05-Mar-2012

from mashupslibrary.

alex-fomin avatar alex-fomin commented on July 20, 2024

I have checked the latest mashup with 2.23.1 and it works fine. Are you sure that the mashup is loaded? Could you please check whether the mashup perform all necessary calls (i.e. using Firebug)?

from mashupslibrary.

simonjmartin avatar simonjmartin commented on July 20, 2024

As far as I can tell there are no JS errors from this mashup; can you tell me what calls to look for in Firebug

from mashupslibrary.

alex-fomin avatar alex-fomin commented on July 20, 2024

You need to check whether "number of assignments" mashup is loaded - check scripts or net tab in fire bug. Also you need to trace mashup calls - check net tab (XHR - "http://xxx/api/v1/UserStories" and "http://xxx/api/v1/Bugs" requests)

from mashupslibrary.

simonjmartin avatar simonjmartin commented on July 20, 2024

That looks like it's doing the right thing then - but still I'm not getting any display above the Kanban board for the number of assigments.

In the Net tab I can see the request for NumberOfAssignments.js and it returns 304
When I go to the XHR tab I can see

http://myserver/TargetProcess2/api/v1/UserStories?where=(EntityState.IsFinal%20eq%20%22false%22)%20and%20(EntityState.IsInitial%20eq%20%22false%22)%20and%20(EntityState.Name%20ne%20%22Planned%22)%20and%20(EntityState.Name%20ne%20%22Merged%22)%20and%20(Project.Name%20eq%20%22Phase2%22)&include=[Assignments[GeneralUser[id,FirstName,LastName]]]&take=1000&format=json

and

http://myserver/TargetProcess2/api/v1/Bugs?where=(EntityState.IsFinal%20eq%20%22false%22)%20and%20(EntityState.IsInitial%20eq%20%22false%22)%20and%20(EntityState.Name%20ne%20%22Planned%22)%20and%20(EntityState.Name%20ne%20%22Merged%22)%20and%20(Project.Name%20eq%20%22Phase2%22)&include=[Assignments[GeneralUser[id,FirstName,LastName]]]&take=1000&format=json

from mashupslibrary.

simonjmartin avatar simonjmartin commented on July 20, 2024

I should add that I have 2 calls to GET UserStories?where... and 2 calls to GET BUGS?where...the difference in each call being the Project.Name

In one of the calls to UserStories I'm getting the following:

{
"Items": [
{
"Id": 321,
"Assignments": {
"Items": [
{
"Id": 166,
"GeneralUser": {
"Id": 3,
"FirstName": "Simon",
"LastName": "Martin"
}
}
]
}
},
{
"Id": 317,
"Assignments": {
"Items": [
{
"Id": 162,
"GeneralUser": {
"Id": 3,
"FirstName": "Simon",
"LastName": "Martin"
}
}
]
}
}
]
}

from mashupslibrary.

alex-fomin avatar alex-fomin commented on July 20, 2024

So far it seems all ok.

Let's move this discussion to http://www.targetprocess.com/support/ if you don't mind - it would be more efficient to arrange live chat and debug the mashup on your page.

from mashupslibrary.

alex-fomin avatar alex-fomin commented on July 20, 2024

Ok, so it was an old version of mashup, so I'm closing the issue

from mashupslibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.