Forums

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

jira automation accessing project properties

Luc Noppen
Contributor
May 24, 2022

Hello,

Is it possible with a jira automation rule to get a jira project property?  You specify the project property key and you get the project property value. I already searched in the available smart values but didn't find anything.

Thanks

2 answers

1 accepted

2 votes
Answer accepted
mfabris
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 Champions.
June 23, 2017

Try this, it will work

function getSummary() {
var key = this.JIRA.Issue.getIssueKey(); 
var summary;
     AJS.$.ajax({
        url: "/rest/api/2/issue/" + key,
        type: 'get',
        dataType: 'json',
        async: false,
        success: function(data) {
            summary = data.fields.summary;
        }
     });
  
     return summary;
};

getSummary();

I am sure there is an easier way, but this surely works

 

Happy weekend!

 

ARUN KUMAR MK
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 Champions.
June 23, 2017

I have already used this api to get the summary, but i thought there is some easy way to get it. Anyway's thanks for your reply.

0 votes
Nic Brough -Adaptavist-
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 Champions.
June 23, 2017

Not tried getSummary() yet?

ARUN KUMAR MK
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 Champions.
June 23, 2017

Tried and not working, it not present in JIRA.Issue

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events