Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for JIRA

KRC
Contributor
May 24, 2018

Hi All

we recently got Automation for Jira (Server) plugin and we are trying to perform the following, we are close but not perfect to complete

So, our scenario

In a project, 

if issue type =Task or Story or Subtask

and Priority=Blocker

Then

when above issues are transitioned to status CLOSE, we want priority to be updated to Trivial.

 You might think that when an issue is closed why would we bother about priority? Yeah, but we need it.

am not sure what we are missing, we there but not .. Any help? or suggestions? and no post functions to achieve this.

 

Thanks

 

2 answers

0 votes
Scott Harwood
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2018

Hi,

 

I am assuming you mean the Automation for Jira add-on, not the one built into service desk? With the add on you can apply this to any project, not just Service Desk ones. The rule (pictured below) using the add on would essentially be:

  • Trigger: Issue Transition
  • Condition: JQL
    - Status = Closed AND priority = Blocker AND issuetype in (Task,Sub-task)
  • Action: Edit Issue
    - Select "priority" from the "choose fields to select"

Screen Shot 2018-05-28 at 8.32.59 am.png

Let me know if that works for you.

Cheers,
Scott

KRC
Contributor
May 29, 2018

Hi

I tried your way, Its funny, When I hit close, it won't change the priority, but when I reopen the issue priority is updated.. any thoughts?

0 votes
Deleted user May 25, 2018

Hi @KRC,

Try to create a custom rule in the project automation something similar the configuration you see in the screenshot attached.

Config.png

1. When this happens...  - use Status changed.

2. Add a condition and use an advanced filter. - Status = Closed AND priority = Blocker AND issuetype in (Task,Sub-task)

ifCondition.png

3. Then do this...   - Choose field Priority and set value to Trivial.

ThenCondition.png

Save the configuration and try to close the issue and you should be able to achieve the required functionality.

Hope this helps!!

Regards,

Priyanka

KRC
Contributor
May 29, 2018

It looks like you are referring to JSD automation. But I was talking about the plugin called "Automation for JIRA"

Deleted user June 6, 2018

Hi @KRC,

The same configuration works well with "Automation for JIRA" as well.

Try to use the JQL condition as status=Close and issuetype in (Task,Sub-task) and priority=Blocker

jql.png

In "Then" configuration choose field Priority and set value to Trivial.

action.pngOnce the transition is executed try to reload the page and you should be able to see the priority field value as Trivial.

Hope this helps!!

Regards,

Priyanka

Suggest an answer

Log in or Sign up to answer