Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Workflow post function to set resolution only if triggered by specific trigger

Hi guys,

 

I have a little specific case, that I want to think is actually quite common but still cannot automate. 

 

So setup is Cloud Jira + Cloud Bitbucket. I have setup workflow transition triggers so that once a PR is merged I resolve the ticket. 

 

The thing is I cannot make it so that on resolving the ticket it sets a resolution "Done" and I end up with status resolved without setting the resolution.

 

If I just implement Post function to set this to Done, then it will get resolution Done regardless if triggered by the "PR is merged" trigger or if I manually modify the ticket.

 

How would you suggest I approach this case.

 

Help much appreciated.

Best,

JD

1 answer

1 accepted

0 votes
Answer accepted

Hi @Julian Davchev ,

Jira natively does not have a conditional option that can be set based on a trigger event, and there is some discussion on the same use case recommending the third party tool ScriptRunner as an option to accomplish this in the following thread, However the method described is one of the apps built in scripts, that I cannot verify wether it exists in the tool or not so it may not be avaliable on the Cloud version as discussed in "Why are built in scripts in ScriptRunner for Jira Cloud limited" , the post can be seen at the following link and would be one option to look into if the function is also avaliable in the Cloud version:

But for your noted use case a native option that might work out via the workflow would be to set up a two different transitions to the done status, one to be used by the trigger including the post function setting the resolution, and the other used when manually transiting in the instance so that a Resolution can be set manually.  Then on the transition used by your trigger set up the "Hide From User Condition" (Additional details on avaliable conditions can be seen in "Advanced workflow configuration: Conditions" )  So that the Transition is not avaliable to anyone on the front end but is still avaliable to the trigger in the backend as this condition can still be triggered from a workflow function or from REST calls.

Regards,
Earl

That is some awesome advice Earl! Thanks a lot for the hint!

Like Earl McCutcheon likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

215 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you