Forums

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

Have a mandatory comment in transition screen and disabled comments then

Josef Širůčka September 23, 2020

Hi,

I have the transition from OPEN to DECLINED statuses and I want to have this scenario:

1.) User is going to click to DECLINED status (the issue is in OPEN)

2.) When User clicks to change the status, a new dialog is opened, where the user can enter the comment (reason of the decline) - this comment is set as mandatory in Workflow settings by validator.

3.) The comment will be added to the issue.

4.) The issue will be set to "disable to add comments" via its property

5.) The issue is closed and user is not able to add new comments anymore.

 

Problem is, that if I click to the status: "DECLINED" - the issue is set to DECLINED status but the comment which was created on the screen is not added - becuase of property set in step 4.

Any thoughts how to solve this without any plugins?

 

1 answer

0 votes
Peter Bengov
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.
September 23, 2020

Hi @Josef Širůčka 

Interesting issue you found there... 

I think this is due to the fact the order of post-function events is:

  1. Set issue status to the linked status of the destination workflow step.
  2. dd a comment to an issue if one is entered during a transition.
  3. ...

If you could have switched that order, that would probably help. I'm not sure that's possible without an app or in the cloud allthogether. 

I would use a workaround, unless someone else here has a better suggestion:

  • Your DECLINED change will be without the blocking property, so a comment will be added.
  • You'll add a post function or automation when a ticket goes to DECLINED, the status will automatically change to DECLINED - CLOSED (for example) which will have the property you've mentioned. 
Josef Širůčka September 23, 2020

Hello, thanks for the hints, I have tried that, but changing the order of post-functions is not possible:

2020-09-24 08_43_32-Transition_ Task is declined - Jira.png

Unfortunately, there are no post-function to set-up the property:

2020-09-24 08_45_11-Add Post Function To Transition - Jira.png

So I have tried also the automation. Automation was fired correctly, but the property did not work.....

2020-09-24 08_52_47-Automation rules - Jira.pngAny clue? :)

Peter Bengov
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.
September 24, 2020

How about using the automation only to change the status while the property will remain on the workflow level? 

Josef Širůčka September 24, 2020

I think this is not possible since user need to trigger this action....

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events