Coder Social home page Coder Social logo

update custom field about python-redmine HOT 5 CLOSED

ds485 avatar ds485 commented on July 27, 2024
update custom field

from python-redmine.

Comments (5)

maxtepkeev avatar maxtepkeev commented on July 27, 2024 2

Because you are using the wrong format. Actually, the answer to your question is in documentation:

redmine.issue.update(1, custom_fields=[{'id': 1, 'value': '2014-04-17'}, {'id': 2, 'value': '2014-04-17'}]

from python-redmine.

ds485 avatar ds485 commented on July 27, 2024

Thanks,
I tried to use the filter syntax, sry.

from python-redmine.

maxtepkeev avatar maxtepkeev commented on July 27, 2024

Actually I would like to thank you for the idea. I believe I will be able to implement the filter() syntax for the create(), update() and other methods, so all methods will share similar syntax for custom fields. I'll try to do this in one of the future versions of Python Redmine.

from python-redmine.

josephc1217 avatar josephc1217 commented on July 27, 2024

Because you are using the wrong format. Actually, the answer to your question is in documentation:

redmine.issue.update(1, custom_fields=[{'id': 1, 'value': '2014-04-17'}, {'id': 2, 'value': '2014-04-17'}]

It seems cannot work, i can update other fields like status , priority, etc through redmine.issue.update, but always failed to update the custom_fields like you mentioned.

I found someone said that the custom_fields can not be update through the redmine.issue.update at present.

Anyhow, i still dont know how to update the custom_fields successfully.

from python-redmine.

maxtepkeev avatar maxtepkeev commented on July 27, 2024

Hi @josephc1217

Just checked, works perfectly fine for me, if you're sure that your custom field ids are correctly set, you need to give me more info, what type of custom field, what settings etc., better a screenshot from admin interface with this specific custom field settings you currently have.

from python-redmine.

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.