Forums

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

Can an automation action be triggered when an issue is "viewed", not edited?

Steve Hooczko
Contributor
September 9, 2021

Can an automation action be triggered when an issue is "viewed", not edited?

I want to have a custom field be the sum of two other fields without any trigger conditions.

2 answers

0 votes
Bill Sheboy
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 10, 2021

Hi @Steve Hooczko 

What is your concern about "without any trigger conditions"?

Have you instead considered using automation rules to update the custom field whenever the source fields change...and so those would be the triggers?  Then the custom field would only refresh when necessary.

Kind regards,
Bill

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2021

Good call

Steve Hooczko
Contributor
September 10, 2021

I also wanted this to take affect for issues (i.e. the 2 custom fields) that have already been updated.

Bill Sheboy
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 10, 2021

Thanks for clarifying!

I encountered a similar situation when we added a rule to calculate Age of WIP, and my work-around was to create a one-time rule to batch process the earlier issues (using a scheduled trigger).  It needed to run in "chunks" as there were more than 100 issues to process...which is the automation limit for a rule.

Once everything was caught up, I was able to disable/remove that rule.

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2021

Hi Steve,

No, you can't trigger it when just viewed - nor do I think that you really want that. 

You can create a manual trigger that when you go to the issue, you can trigger it by clicking on the rule execution then. 

Is that what you are looking for?

Steve Hooczko
Contributor
September 10, 2021

OK, you answered my main question re: not being able to trigger on viewing. The manual trigger is an option. Once the manual trigger is executed the summation field will contain the sum thereafter, correct?

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2021

Correct 

Deleted user October 28, 2022

Hi @John Funk 

are you aware if any of the scripting tools such as Scriptrunner can trigger an action when an issue is viewed ?

I want to be able to see which of my issues have changes/comments that i have not viewed yet without opening each one to look for changes. This would be similar to the way outlook highlights unread email messages.

 

Best regards -- Kevin

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2022

Hey Kevin - no, I am not aware of any tools that can do that based on views. If it is that important, you might want to include a custom field called Viewed or something like that. And then quickly update that field with a value when you view it. Then you would be able to run some easy filters/queries. 

Deleted user October 30, 2022

Hi @John Funk 

thanks for your response. 

When you say "quickly update", how would i do that ?

If this is a button for the user to click that writes the time of click into the database, I would consider this a manual workaround, not an automation. 

I thought it might be possible to monitor a custom field and trigger when this gets read by Jira as part of the viewing function. However, i dont think Atlassian allows access to DB at that level -- even less likely on cloud.

Best regards -- Kevin

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2022

Yes, it would be manual. And like I mentioned above, there is not going to be a way to automate that right now in Cloud. And no, you won't have access to the DB in Jira Cloud. 

Deleted user October 31, 2022

Hi @John Funk 

I understand it is possible to embed an image in an issue that will be rendered when the issue is viewed. The image can also be a link to a remote server.

In this case, does Jira access the remote link each time the issue is viewed, or does it cache the image ?

I'm thinking when jira accesses the image -- an event on the remote web server --  i could use this as a signal that the issue has been viewed. Of course i would need a different image (or URL) for each issue in order to know which issue has been viewed.  Do you think this could work ?

 

Best regards -- Kevin

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2022

I don't know for sure, but I would imagine that it is caching the image.  You could give it a try and see though - sounds like an interesting experiment.  :-)

Deleted user November 2, 2022

Hi @John Funk 

i tried a couple of methods

1. link in description -- this just allows you to click link to follow but does not download the image

2. attach image to description -- this uploads the image so it becomes local, remote connection is lost

I read that it is possible to put JS/HTML in issue fields, but it seems that wont work on cloud (see image). We are presently on server but moving to cloud because it is more  restrictive ;-)

inject.png

So at the moment i have run out of ideas again.... :-(

 

Best regards -- Kevin

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 3, 2022

Yeah, I really don't know of a way to do it. Seems to me there is a need for an app that can list issues seen by users in a particular time period. But I know of none that exist.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events