24520

Automating custom field value change in JIRA

Question:

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

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 "<em>Verified After Deployment</em>"

Is there a way I could automate this?

I went through the documentation - I found out the option to do a <a href="https://confluence.atlassian.com/display/JIRA/Modifying+Multiple+%28%27Bulk%27%29+Issues" rel="nofollow">Bulk Edit</a> but my project architect wouldn't hear of any manual intervention at all.<br /> 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 ?

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

Answer1:

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

Start with <a href="http://jira-python.readthedocs.org/en/latest/" rel="nofollow">http://jira-python.readthedocs.org/en/latest/</a> or <a href="https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues#JIRARESTAPIExample-Editissues-Examplesofupdatinganissueusingfields" rel="nofollow">https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues#JIRARESTAPIExample-Editissues-Examplesofupdatinganissueusingfields</a>.

Answer2:

Sounds like your QA takes action during the Dev process (on Dev/Test/Stage environment(s)) to verify the issue has been resolved, and again after the deployment to a Production environment. If this is true, you could modify your workflow to allow for status & transitions to automatically set the field via a Post Function.

If QA hits 'Pass', it sends the issue forward in the workflow where that action updates the field "Detailed Status", and if they hit 'Fail/Reopen' it sends it back to Dev along with the corresponding status you want on that custom field. This would meet the mandate of no manual intervention.

There are several free plugins that can accomplish this, and streamline your workflow so that it mirrors your development practices.

Recommend

  • auto renaming batch file
  • Can CMake detect if I need to link to libm when using pow in C?
  • Jenkins and SSL certificates
  • Gridview doesn't update when the bound data changes
  • Getting a blank file when accessing JIRA on SSL
  • Login to new basecamp programatically [without user intervention]
  • Updating database from a list of dictionaries
  • File upload field is reset when submit form
  • C# enable/disable network tracing at runtime?
  • AS2 .swf loadmovie() and unloadmovie() fail when nested inside an AS3 .swf container
  • SQL Server 2008 INSERT Optimization
  • RabbitMQ BasicConsume and Event Driven Issues relating to Console.ReadLine()
  • Excel Not Responding During Macro
  • On change event Ext.form.DateField
  • jQuery datatable setting column design and value in success callback
  • Use MongoDB array as stack
  • AOT and JIT with build-optimizer
  • When interface inheritance in Java is useful?
  • Mercurial: Identify file name after rename
  • File extension of zlib zipped html page?
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • Suppressing passwd when calling sqlplus from shell script
  • Security issues with PHP's Readfile method
  • What's the purpose of QString?
  • How do I access an unhandled exception in an MVC Error view?
  • d3 v4 drag and drop with TypeScript
  • JQuery Internet Explorer and ajaxstop
  • Google Custom Search with transparent background
  • Fetching methods from BroadcastReceiver to update UI
  • Opengl-es onTouchEvents problem or a draw problem? [closed]
  • vba code to select only visible cells in specific column except heading
  • How can I use Kendo UI with Razor?
  • Symfony2: How to get request parameter
  • Do I've to free mysql result after storing it?
  • GridView Sorting works once only
  • WPF Applying a trigger on binding failure
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • Why joiner is not used after Sequence generator or Update statergy
  • Linking SubReports Without LinkChild/LinkMaster
  • To Get the radio button value in ruby on rails