updating JIRA using ansible playbooks

I am a beginner in ansible and getting the below error while trying to update an issue in JIRA using a playbook. Can anyone help

ERROR! ‘jira’ is not a valid attribute for a Play

I am using the below ansible version:

[ansible@bitbucket playbooks]$ ansible --version
/usr/bin/ansible:26: UserWarning: Module main was already imported from /usr/bin/ansible, but /usr/lib/python2.6/site-packages is being added to sys.path
import pkg_resources
ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
[ansible@bitbucket playbooks]$

Not without you showing your code since you have an error in it.

see http://docs.ansible.com/ansible/latest/uri_module.html for an example

Hi Thanks for your reply. Here is my code

#THis is a YAML Playbook

Your indentation is little off. - name: Edit.. and jira module should be a list under the tasks.
In yaml indentation is very important.

- name: Updating ticket on Jira (testing)
   hosts: localhost
   gather_facts: no
   tasks:
   - name: Edit issue - use arguments with fields
     jira:
       uri: https://xxx.atlassian.net/rest/api/latest/issue/
       username: xxx.x.xxx@xxx.com
       password: xx
       issue: xxx-1
       operation: transition
       status: Done