# History tag stored on rising tag only

**URL:** <https://forum.inductiveautomation.com/t/history-tag-stored-on-rising-tag-only/34124>\
**Category:** Ignition\
**Created:** [April 22, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/history-tag-stored-on-rising-tag-only/34124 "2020-04-22T16:40:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwhite](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bwhite/32/7112_2.png) [@bwhite](https://forum.inductiveautomation.com/u/bwhite)\
**Post date:** [April 22, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/history-tag-stored-on-rising-tag-only/34124/1 "2020-04-22T16:40:57Z")

</div>

I want to store a history tag only when it turns on just to get the timestamp. I know I could do this with a transaction, but I was hoping to do it using the tag history. Is this possible? I’ve thought of a couple of ways but they add complexity that I don’t think is necessary.

---

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [April 22, 2020, 5:59pm UTC](https://forum.inductiveautomation.com/t/history-tag-stored-on-rising-tag-only/34124/2 "2020-04-22T17:59:16Z")

</div>

You could use a tag event script to increment a memory integer tag every time this Boolean tag changes and use it for your history.

```auto
	if not initialChange:
		if currentValue.value == 1:
			value = system.tag.read("[.]MemoryTag")
			value = value + 1
			system.tag.write("[.]MemoryTag", value)

```
