# JIRA Resource Property Holder is not Picklable

**URL:** <https://community.developer.atlassian.com/t/jira-resource-property-holder-is-not-picklable/4932>\
**Category:** Jira Development\
**Tags:** python\
**Created:** [June 8, 2017, 12:27pm UTC](https://community.developer.atlassian.com/t/jira-resource-property-holder-is-not-picklable/4932 "2017-06-08T12:27:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalez618](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kalez618](https://community.developer.atlassian.com/u/kalez618)\
**Post date:** [June 8, 2017, 12:27pm UTC](https://community.developer.atlassian.com/t/jira-resource-property-holder-is-not-picklable/4932/1 "2017-06-08T12:27:23Z")

</div>

I do some sorting based on ‘status’, ‘components’ etc on the JIRA Resource object in python. Since I have written them under functions, it takes too much time. In order to make it faster I tried using multiprocessing. But it seems that JIRA Resource object is not picklable and multiprocessing can’t be used. But multithreading can be used.

---

<div class="post-metadata">

**Author:** ![matt.doar](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/matt.doar/32/373_2.png) [@matt.doar](https://community.developer.atlassian.com/u/matt.doar)\
**Post date:** [October 24, 2017, 11:44pm UTC](https://community.developer.atlassian.com/t/jira-resource-property-holder-is-not-picklable/4932/2 "2017-10-24T23:44:09Z")

</div>

```
    Changes needed to jira/resources.py

    Replace:
    top = type(str('PropertyHolder'), (object,), raw)
    with
    top = PropertyHolder(raw)

    and add at the end

    class PropertyHolder(object):
    
      def __init__ (self, raw):
        __bases__ = raw
```
