Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
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

How can i know transition was caused by hit button or script?

I write workflow post functions in scriptRunner.

I need to know if a transition was caused by hit button or script

1 answer

1 accepted

2 votes
Answer accepted
Fazila Ashraf Community Leader Mar 19, 2021

@zeng qing  , in your script do you use any specific automation user account to action the transition? If you are letting it authorize as the current user or a general user, i do not see a way to differentiate. The history will be only record the user account, timestamp and change details and not further details on the change was triggered.

If you can't differentiate on the basis of user, then no, there's no way to know.

You can do it though - when you write a script that causes a transition, have it store data on the issue to record it (a custom field you don't bother to put on the view screens or cards is the simplest option).

Your post-functions can then read that (and clear it if you don't need it again)

Can't agree more.Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

459 views 19 23
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