Giter Site home page Giter Site logo

Comments (15)

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

What happens if you select the issue type from the dropdown box does that work?

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

Can you configure an HTP Request node to use the same credential and set the URL to https://your-instance.atlassian.net/rest/api/2/project/10980 and see if that works?

It can also fail to load if the project id isn't correct as an example for my test project which is the first project in my jira instance the id is 10000 and for my issues I have...

Task - 10001
Epic - 10002
SubTask - 10003

Don't forget that these are IDs internal to Jira, I would be very surprised if you had single digit IDs on Jira Cloud.

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

Can you try the request option I provided so we can see what Jira is replying with?

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

Yeah we were expecting higher so we need to change that regex, I am not sure why it isn't loading the list though. I will update that regex though and we can see if it changes anything.

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

@mathiasdaniel docker tag is n8nio/n8n:PR-8571-gh-8560 but I would recommend running it as a test instance rather than in your live instance.

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

Perfect, in that case I will get the PR ready for review and we can look at merging it for the next release.

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024 1

Hey @mathiasdaniel,

The change for this has been merged and will be generally available in the next release. For now I will get this closed.

from n8n.

janober avatar janober commented on May 23, 2024 1

Fix got released with [email protected]

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

Hey @mathiasdaniel,

What happens if you select the issue type from the dropdown box does that work?

Hey @Joffcom,

good advice, but there is also a Problem:

IssueType_from_list_doesnt_work
BTW the JIRA User has admin privilegs (for fixing this bug), so there should be no problems with JIRA Cloud right policy.

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

@Joffcom we are also surprised of one digit IssueTypeIDs - after the migration from jira server to jira Cloud.

The Test via HTTP Post Request works:
Call_web_Request_works

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

Hey @Joffcom

I changed the Method to GET and the URL to https://our_instance.atlassian.net/rest/api/2/project/10980

Here is the Output:

[
  {
    "expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
    "self": "https://our_instance.atlassian.net/rest/api/2/project/10980",
    "id": "10980",
    "key": "SYS",
    "description": "",
    "lead": {
      "self": "https://our_instance.atlassian.net/rest/api/2/user?accountId=712020:9b30ad14-d3cd-4ed3-a41c-b4c440712355",
      "accountId": "712020:9b30ad14-d3cd-4ed3-a41c-b4c440712355",
      "avatarUrls": {
        "48x48": "https://secure.gravatar.com/avatar/877d5474e20eee516937ba75a901555a?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHM-5.png",
        "24x24": "https://secure.gravatar.com/avatar/877d5474e20eee516937ba75a901555a?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHM-5.png",
        "16x16": "https://secure.gravatar.com/avatar/877d5474e20eee516937ba75a901555a?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHM-5.png",
        "32x32": "https://secure.gravatar.com/avatar/877d5474e20eee516937ba75a901555a?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHM-5.png"
      },
      "displayName": "Dale and Evil",
      "active": true
    },
    "components": [
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/component/13760",
        "id": "13760",
        "name": "Mando",
        "description": "Mando",
        "isAssigneeTypeValid": false
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/component/13660",
        "id": "13660",
        "name": "Boba",
        "isAssigneeTypeValid": false
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/component/13661",
        "id": "13661",
        "name": "Opal",
        "isAssigneeTypeValid": false
      }
    ],
    "issueTypes": [
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/issuetype/3",
        "id": "3",
        "description": "Eine Aufgabe, die ausgeführt werden soll.",
        "iconUrl": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/11418?size=medium",
        "name": "Aufgabe",
        "subtask": false,
        "avatarId": 11418,
        "hierarchyLevel": 0
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/issuetype/10001",
        "id": "10001",
        "description": "User Story",
        "iconUrl": "https://our_instance.atlassian.net/images/icons/issuetypes/story.svg",
        "name": "Story",
        "subtask": false,
        "hierarchyLevel": 0
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/issuetype/1",
        "id": "1",
        "description": "Ein Problem, welches die Funktion von OPAL beeinträchtigt oder gar verhindert.",
        "iconUrl": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/11403?size=medium",
        "name": "Fehler",
        "subtask": false,
        "avatarId": 11403,
        "hierarchyLevel": 0
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/issuetype/10000",
        "id": "10000",
        "description": "Eine thematische Klammer für andere Vorgänge",
        "iconUrl": "https://our_instance.atlassian.net/images/icons/issuetypes/epic.svg",
        "name": "Epic",
        "subtask": false,
        "hierarchyLevel": 1
      },
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/issuetype/10302",
        "id": "10302",
        "description": "Ein Problem mit einem System oder einer Software",
        "iconUrl": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/11403?size=medium",
        "name": "Problem",
        "subtask": false,
        "avatarId": 11403,
        "hierarchyLevel": 0
      }
    ],
    "email": "jira_mail@our_instance.de",
    "assigneeType": "UNASSIGNED",
    "versions": [
      {
        "self": "https://our_instance.atlassian.net/rest/api/2/version/29849",
        "id": "29849",
        "name": "1",
        "archived": false,
        "released": false,
        "projectId": 10980
      }
    ],
    "name": "System",
    "roles": {
      "atlassian-addons-project-access": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10102",
      "Service Desk Team": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10101",
      "Service Desk Customers": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10100",
      "Technical User": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10103",
      "Administrators": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10002",
      "Users": "https://our_instance.atlassian.net/rest/api/2/project/10980/role/10000"
    },
    "avatarUrls": {
      "48x48": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10201",
      "24x24": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10201?size=small",
      "16x16": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10201?size=xsmall",
      "32x32": "https://our_instance.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10201?size=medium"
    },
    "projectTypeKey": "software",
    "simplified": false,
    "style": "classic",
    "isPrivate": false,
    "properties": {}
  }
]

With the IssueType Problem (issueTypeID 10302) i am able to create a JIRA Ticket via the native JIRA Node.

BTW: I searched the Web for the Schema Description for the issueTypeID, in the end chatgtp tells me a Range of 1 to 10 digits, type number.
The n8n JIRA Node accepts minimum 2 digits for the issueTypeID. https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Jira/IssueDescription.ts

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

@Joffcom thank you so much. n8n and the community are awesome.

from n8n.

Joffcom avatar Joffcom commented on May 23, 2024

@mathiasdaniel if I was to make a test image based on the PR above would you be able to give it a go in a test environment?

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

Hey @Joffcom sure, we only need the Release Tag for the docker build, at the moment we use latest. Thx.

from n8n.

mathiasdaniel avatar mathiasdaniel commented on May 23, 2024

Hey @Joffcom ,

we builded a test instance and tested the following execuions with the JIRA node:

JIRA Node, IssueType, select by ID 3 works - JIRA Ticket is created, JIRA Node Ouptut is fine as expected
JIRA Node, IssueType, select Liste Task (ID 3) works - JIRA Ticket is created, JIRA Node Ouptut is fine as expected

Thank you for your help

from n8n.

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.