Giter VIP home page Giter VIP logo

Comments (12)

thurloat avatar thurloat commented on July 26, 2024

Learned another something about JIRA today, not only are fixVersions not required fields, but some issue types can have the field excluded from the create form.

Even though you leave it empty, if it's not included in the /projectmeta response as an issue field for that type it complains that the key is there anyway.

The fixVersions field is an artifact of the first version of development which didn't allow any custom fields and just had some basic hard-coded fields.

Can you try with current master and let me know if it's working?

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

This introduced another bug. When I am about to submit the jira ticket, it now complains about this.

issue type is required
Changing the issue type will refresh the page with the required form fields.

This error appears even though I chose an issue type or I changed the issue type. This does not let you submit the ticket.

from sentry-jira.

thurloat avatar thurloat commented on July 26, 2024

Odd, I came across that issue while writing the last commit, check 0222857#L0R229 for the line that is supposed to fix it.

what version of JIRA are you running?

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

I am using the following: Python 2.6, Sentry 5.0.14, sentry-jira plugin 0.6.7 and jira 5.1.4

from sentry-jira.

thurloat avatar thurloat commented on July 26, 2024

thought it may have been a sneaky API change between your 5.1.4 and 5.1.6 but my testing says it's working on your version also. I pushed out the fix mentioned above to pypi so you should be able to pip install --upgrade sentry-jira to ensure that fix is applied in your environment.

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

When I downloaded sentry-jira 0.6.8 from pypi, I was still getting the error. When I made the change below in forms.py,

 -                    very_clean.pop(field, None)
+                    del very_clean[field]
+                    # very_clean.pop(field, None)

 -        very_clean["issuetype"] = {"id": very_clean["issuetype"]}
 -        very_clean.pop("project_key", None)
+        del very_clean["project_key"]
+        # very_clean["issuetype"] = {"id": very_clean["issuetype"]}
+        # very_clean.pop("project_key", None)

the changes seems to work (I'm able to submit the ticket to jira).

from sentry-jira.

thurloat avatar thurloat commented on July 26, 2024

any particular reason you switched the pops for dels ?

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

Actually, I was just reverting the change that you made in this commit.

0222857#L0R229

from sentry-jira.

thurloat avatar thurloat commented on July 26, 2024

@bichonfrise74 now it should work for both of our instances, in the commit message I left a potential clue for the difference and i'll keep looking into.

Let me know if latest isn't working for you.

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

Unfortunately, this fix didn't solve the issue that I am seeing. It was still saying that the IssueType is required even though I have selected it.

from sentry-jira.

thurloat avatar thurloat commented on July 26, 2024

@bichonfrise74 just released hotfix version 0.6.11, can you upgrade and ensure it works for JIRA 5.1.4 now?

from sentry-jira.

jonathancua avatar jonathancua commented on July 26, 2024

Thanks, I will try it when I get a chance.

from sentry-jira.

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.