pipeline-backend icon indicating copy to clipboard operation
pipeline-backend copied to clipboard

[wip] feat: added label and assignee to the create issue

Open sahil9001 opened this issue 1 year ago • 11 comments

Because

  • (write the reason why we need to consider this PR in a list)

This commit

  • (write the summary of all commits in this PR in a list) Relates to https://github.com/instill-ai/instill-core/issues/1094

sahil9001 avatar Oct 02 '24 09:10 sahil9001

@jvallesm Can you help me here? I wanted to test the create issue component in pipeline, but I am unable to do so, here is my script:

version: v1beta
variable:
  PROJECT_KEY:
    title: "Jira Project Key"
    description: "Jira project key"
    instill-format: string

  JIRA_TOKEN:
    title: "Jira Token"
    description: "Jira API token"
    instill-format: string

  JIRA_EMAIL:
    title: "Jira Email"
    description: "Email associated with Jira account"
    instill-format: string

  JIRA_BASE_URL:
    title: "Jira Base URL"
    description: "Base URL for your Jira instance"
    instill-format: string
  
component:
  jira-0:
    type: jira
    input:
      project-key: ${variable.PROJECT_KEY}
      issue-type:
        issue-type: Epic
      summary: "Sample Epic Summary"
      description: "This is a sample description for the Epic."
    setup:
      token: ${variable.JIRA_TOKEN}
      email: ${variable.JIRA_EMAIL}
      base-url: ${variable.JIRA_BASE_URL}
    task: TASK_CREATE_ISSUE

output:
  output:
    value: ${jira-0.description}

When running the pipeline I am getting 204, but the response is empty. Also I can't see the epic in JIRA.

This is the console log, {"L":"ERROR","T":"2024-10-03T08:11:03.697Z","M":"Failed to extract ServerMetadata from context"}

sahil9001 avatar Oct 03 '24 08:10 sahil9001

Hi @sahil9001 , Thanks for taking time to take this task.

You have to add the input in the tasks.json for Jira. Ref.

Please feel free to ask any question if you meet the further questions.

chuang8511 avatar Oct 03 '24 10:10 chuang8511

Thanks @chuang8511 , can you help me further, for some reason when I am putting the value in tasks.json it doesn't show up on the UI. Do you have a video or something, if you can please share?

sahil9001 avatar Oct 03 '24 20:10 sahil9001

@sahil9001 Thanks for asking!

Do you have a video or something

No, we do not have video.

it doesn't show up on the UI.

If you make sure the json is right, the reason why it doesn't show up in UI could be

  • The component spec is not updated. So, you need to re-run go ./cmd/main again to update it.
  • There could be unknown bug in UI, so you could still edit the ymal_recipe and try to push the run button to check if the params are really sending to the working.

can you help me further

How about you push your modification on json? So, I can take a look what problem could be.

And, another quick way is to check other json as reference.

chuang8511 avatar Oct 04 '24 08:10 chuang8511

How about you push your modification on json? So, I can take a look what problem could be.

Actually I am unclear about what to update in that JSON (as I can't see a field to add there), I am asking for a working example if you have.

What is the problem with my variable input which I was doing earlier?

sahil9001 avatar Oct 04 '24 08:10 sahil9001

Hi @sahil9001 Could you take a look on this PR as reference? I think it is similar with what you will do.

chuang8511 avatar Oct 04 '24 08:10 chuang8511

Hi @sahil9001 Could you take a look on this PR as reference? I think it is similar with what you will do.

I think this part will come when I need to check my assignee or label changes, currently I am just checking what the base component is by running it, and I am unable to provide an input from the UI.

sahil9001 avatar Oct 04 '24 08:10 sahil9001

and I am unable to provide an input from the UI.

What do you mean "unable to provide an input from the UI" specifically? Would you mind to provide video or screenshot for us?

chuang8511 avatar Oct 04 '24 08:10 chuang8511

https://github.com/instill-ai/pipeline-backend/pull/692#issuecomment-2390795111

See the yaml which I shared above, that is what I am using, when I click on "Run" here, nothing happens. Which means, no information on the frontend regarding the failure and also no issue gets created on the JIRA.

Screenshot 2024-10-04 at 3 04 30 PM

sahil9001 avatar Oct 04 '24 09:10 sahil9001

Hello @sahil9001, have you joined our Discord group yet? May I suggest you attend any of our office hours sessions (every Tuesday at 3 pm BST or Thursday at 6 pm BST) so we can walk-through and troubleshoot your issue together?

You can join our discord here: https://discord.gg/sevxWsqpGh

kuroxx avatar Oct 04 '24 10:10 kuroxx

Sure, thanks for this.

sahil9001 avatar Oct 04 '24 10:10 sahil9001