Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sahil9001
Copy link

@sahil9001 sahil9001 commented Oct 2, 2024

Because

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

This commit

@sahil9001
Copy link
Author

@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"}

@chuang8511
Copy link
Member

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.

@sahil9001
Copy link
Author

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?

@chuang8511
Copy link
Member

chuang8511 commented Oct 4, 2024

@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.

@sahil9001
Copy link
Author

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?

@chuang8511
Copy link
Member

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

@sahil9001
Copy link
Author

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.

@chuang8511
Copy link
Member

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?

@sahil9001
Copy link
Author

#692 (comment)

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

@kuroxx
Copy link

kuroxx commented Oct 4, 2024

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

@sahil9001
Copy link
Author

Sure, thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants