在JIRA中自动执行自定义字段值更改

在JIRA中自动执行自定义字段值更改

本文介绍了在JIRA中自动执行自定义字段值更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在问题页面上有一个名为"详细状态"的自定义字段.测试人员确认问题后,他们会将此字段的值更改为"准备部署".将最新代码部署到服务器后,应将其更改为"部署后验证".

I have a custom field called "Detailed Status" in the issue page. After an issue is verified by testers, they will change the value of this field to "Ready for Deployment". After we deploy the latest code to the server, this should be changed to "Verified after Deployment".

此刻,每次部署之后,至少会有10-15个问题,这将要求开发人员手动处理每个问题,并将自定义字段的值更改为"部署后已验证" "

At the moment, after every deployment there will be at least 10-15 issues which will require a developer to manually go to each issue and change the value of the custom field to "Verified After Deployment"

有没有办法使它自动化?

Is there a way I could automate this?

我仔细阅读了文档-找到了执行批量编辑,但我的项目架构师根本听不到任何人工干预.
事件侦听器将无法达到目的,因为部署不是Jira事件,而是外部过程.可以使用脚本来完成吗?通过直接对JIRA表进行更新?

I went through the documentation - I found out the option to do a Bulk Edit but my project architect wouldn't hear of any manual intervention at all.
Event listeners wouldn't serve the purpose would they, since deployment is not a Jira event but an external process. Could this be done using a script ? By directly doing an update on the JIRA tables or so ?

对不起,我听起来很含糊和无知,因为我对JIRA定制还很陌生.任何指针,将不胜感激.谢谢.

Sorry for sounding very vague and ignorant, since I am quite new to JIRA customization. Any pointers would be appreciated. Thanks.

推荐答案

有一个REST API,脚本可以使用该REST API更新问题中的自定义字段.

There is a REST API that can be used by a script to update the custom field in the issues.

http://jira-python.readthedocs.org/en/latest/或者 https://developer. atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues#JIRARESTAPIExample-Editissues-Examplesofupupinganissueusingfields .

Start with http://jira-python.readthedocs.org/en/latest/orhttps://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues#JIRARESTAPIExample-Editissues-Examplesofupdatinganissueusingfields.

这篇关于在JIRA中自动执行自定义字段值更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 20:54