Update field if code has been commited to bitbucket

Issue #364 resolved
Ian Juliff created an issue

Hi Fidel,

I want to update a Jira when commits exist in bit bucket

I am using "Update parameters of the Write field on issues returned by JQL query Function for this transition".

With the following query, which should update current ticket if commits exist // issuekey = "%{00015}" and issue.property[development].prs > 0

It works fins when I use the search in the standard jira serach but doesnt seem to be working in the workflow transition.

Any ideas why not, or how I could update the field another way?

Regards,

Ian

Comments (4)

  1. Fidel Castro Armario repo owner

    Hi Ian,

    The problem you are experiencing is not related with issue properties, but with the fact that you are updating current issue from a post-function that usually is used for updating other issues. This is actually a bug, and I have fixed it in version 2.2.14_beta_1.

    Please, let me know if it solves your problem.

  2. Ian Juliff reporter

    Hey Fidel,

    Thanks so much, that works perfectly now!

    When is 2.2.14 going to be released in Production?

    Thanks for sorting this so quickly. :-)

    Ian

  3. Fidel Castro Armario repo owner

    Version 2.2.14 will be released at the end of July. Anyway you can implement the same behavior using "Copy a parsed text to a field" post-function with current version of the plugin.

    Use the following configuration:

    • Target field: field you want to update
    • Parsing mode: basic
    • Text to be parsed: field code or text composition for the source value
    • Conditional execution:
    count(issuesFromJQL("issuekey = " + %{00015} + " and issue.property[development].prs > 0")) = 1
    
  4. Log in to comment